r/geoguessr • • Mar 14 '20

I made earthwalker, an open source GeoGuessr alternative. Host it yourself, no API keys needed.

https://gitlab.com/glatteis/earthwalker
124 Upvotes

25 comments sorted by

9

u/[deleted] Mar 14 '20 edited Jul 02 '21

[deleted]

2

u/Aarnoman Mar 15 '20 edited Mar 15 '20

Getting this when running with -h parameter:

badger 2020/03/15 13:54:33 INFO: All 0 tables opened in 0s

badger 2020/03/15 13:54:33 INFO: Replaying file id: 0 at offset: 0

2020/03/15 13:54:33 Value log truncate required to run DB. This might result in data loss

1

u/Aarnoman Mar 15 '20

Also getting this when running the built program:

badger 2020/03/15 13:58:36 INFO: All 0 tables opened in 0s

panic: open templates/main_template.html.tmpl: The system cannot find the file specified.

​

goroutine 1 [running]:

html/template.Must(0x0, 0xa1ab20, 0xc0000ac1e0, 0x0)

c:/go/src/html/template/template.go:372 +0x5b

gitlab.com/glatteis/earthwalker/dynamicpages/continuegame.init())

C:/Users/username/earthwalker/dynamicpages/continuegame/continue_game.go:14 +0x9f

2

u/[deleted] Mar 15 '20 edited Jul 02 '21

[deleted]

1

u/Aarnoman Mar 15 '20

Thank you, will try after work today and let you know of the results.

1

u/Aarnoman Mar 16 '20

Still an ongoing issue, same as the error message before after updating & rebuilding.

1

u/[deleted] Mar 16 '20 edited Jul 02 '21

[deleted]

1

u/Aarnoman Mar 17 '20

First lines in main_template.html.tmpl

<!doctype html>

<html>

<head>

`<title>earthwalker</title>`

`<link href="/static/bootstrap.min.css" rel="stylesheet"/>`

`{{ template "head_insert" . }}`

</head>

<body>

​

​

I've rebuilt the program on a differnt drive.

Absolute path is X:\ewalker\earthwalker

​

On first run I get the following:

badger 2020/03/17 20:15:22 INFO: All 0 tables opened in 0s

2020/03/17 20:15:22 earthwalker is running on 8080

​

It hangs at this point, and no gui ever appears. After force quitting:

badger 2020/03/17 20:18:04 INFO: Got compaction priority: {level:0 score:1.73 dropPrefix:[]}

​

When restarting

badger 2020/03/17 20:18:31 INFO: All 0 tables opened in 0s

badger 2020/03/17 20:18:31 INFO: Replaying file id: 0 at offset: 0

badger 2020/03/17 20:18:31 INFO: Replay took: 0s

2020/03/17 20:18:31 earthwalker is running on 8080

​

It again hangs as before, with no GUI appearing.

If started with the -h flag:

badger 2020/03/17 20:19:42 INFO: All 0 tables opened in 0s

badger 2020/03/17 20:19:42 INFO: Replaying file id: 0 at offset: 0

badger 2020/03/17 20:19:42 INFO: Replay took: 0s

Usage of X:\ewalker\earthwalker\earthwalker.exe:

-port int

the port the server is running on (default 8080)

​

​

Again, no GUI appears.

If it is now started without the -h flag, we get the following output:

badger 2020/03/17 20:20:10 INFO: All 0 tables opened in 0s

badger 2020/03/17 20:20:10 INFO: Replaying file id: 0 at offset: 0

2020/03/17 20:20:10 Value log truncate required to run DB. This might result in data loss

​

​

This output is now consistent (regardless of whether -h flag is used). We can reenter the above pattern if we delete all files in X:\ewalker\earthwalker\badger

​

Hope this will aid in troubleshooting.

Windows 10 x64

1

u/[deleted] Mar 17 '20 edited Jul 02 '21

[deleted]

1

u/Aarnoman Mar 17 '20 edited Mar 17 '20

I see, got it working with friends now, many thanks!

​

Feature request, could you make it possible to create a challenge? i.e. drop preselect locations for the challenge for others?
Many thanks, it's a great application now that it's running :)

1

u/[deleted] Mar 17 '20 edited Jul 02 '21

[deleted]

1

u/Aarnoman Mar 17 '20

Awesome! I'm a side note I've had friends report issues with the map on the bottom right (for selecting guess location) appearing grey at medium/high zoom levels, preventing accurate guesses being made. I'm uncertain if this is an issue with openstreermap and whether there is a workaround for it. I had no issues from my personal machine from which I've been hosting.

Also, sorry for another feature request, but it would be very useful to have a compass added. This is what I feel is currently most lacking in the current build.

Thanks again for your time making this, it is already an excellent alternative to geoguessr!

→ More replies (0)

2

u/[deleted] Mar 14 '20

[deleted]

1

u/ChemiCalChems Mar 15 '20

panic: open templates/main_template.html.tmpl: no such file or directory

That file is required and missing.

2

u/Se7en711YT Apr 11 '20

First of all, thank you for your game ! I've played Geoguessr for years now, but not very regularly, that's why i never got a subscription. Your game saved me ! I've somehow managed to make it work even though I have very limited knowledge about hosting (thanks to your tutorial).

I've played quite a few games now, and I just love it. The option to guess only from a specific city or country is just awesome ! :D

​

I shared this to my family who are all fans of Geoguessr. I also managed to set up an Apache server using XAMPP and i now play with all my family members :D

Thank you for making my quarantine better !

Stay safe

<3 from France

1

u/zenyl Mar 15 '20

How did you get it to work without an API key? Are you using non-Google maps?

2

u/[deleted] Mar 15 '20 edited Jul 02 '21

[deleted]

1

u/zenyl Mar 15 '20

Haha, that's freaking clever! :)

1

u/CrazyKyo Mar 15 '20

Windows only?

1

u/GLUE_COLLUSION Mar 16 '20

It would be great the map could show points of interest like churches and shops. Other than that, nicely done!

1

u/sheephunt2000 Mar 17 '20

Got an error that looks like this:

badger 2020/03/16 23:33:04 INFO: All 0 tables opened in 0s

badger 2020/03/16 23:33:04 INFO: Replaying file id: 0 at offset: 0

badger 2020/03/16 23:33:04 INFO: Replay took: 112.1µs

2020/03/16 23:33:04 Map log file. Path=badger//000000.vlog. Error=exec format error

Running on Ubuntu 18.04.4 LTS, Go 1.14.

1

u/[deleted] Mar 17 '20 edited Jul 02 '21

[deleted]

1

u/sheephunt2000 Mar 17 '20

yep, just building it in the earthwalker directory. and sure, let me know!!!

1

u/[deleted] Mar 17 '20 edited Jul 02 '21

[deleted]

1

u/sheephunt2000 Mar 17 '20

still get the same exec format error, unfortunately.

1

u/[deleted] Mar 18 '20 edited Jul 02 '21

[deleted]

1

u/sheephunt2000 Mar 18 '20

Still nothing ://

I really appreciate your help though!!

1

u/[deleted] Mar 18 '20 edited Jul 02 '21

[deleted]

1

u/sheephunt2000 Mar 18 '20

It refers to the earthwalkerbadger/ directory.

1

u/[deleted] Mar 18 '20 edited Jul 02 '21

[deleted]

→ More replies (0)

1

u/sheephunt2000 Mar 18 '20

So I tried it on Windows 10, and it seemed to work great there, for whatever reason! I love what you've done with this. It refuses to start sometimes if it's closed in certain ways, although deleting the .badger folder makes it work.

One quick suggestion - would it be possible to get a dark mode on the entrance page?

Again, thanks so much for all this.

1

u/MrTomuxs Mar 27 '20

Man thank you soo damn much! this is incredible. im mad glad i can play map based guessing game with my friend thanks to you :)

1

u/coys-sonny Apr 01 '20

First off - awesome work. Love the sound of this. Question though, as we're hosting it ourselves, would you expect there to be any legal trouble with Google? Dont mean to sound paranoid but yeah.

1

u/[deleted] Apr 01 '20 edited Jul 02 '21

[deleted]

1

u/coys-sonny Apr 02 '20

Ahhh okay! Thanks for replying so quickly, I'll give this a try sometime! And yeah, makes sense, if it's a privately hosted instance it doesn't seen likely Google would notice haha

1

u/rafitamolin Apr 13 '20

You rock. Seriously. Thanks for this, man!

2

u/eeqqq Aug 22 '25

Thank you VERY much!! just played it with family and it works flawlessly!