Gwyneth Llewelyn
|
a621294ad2
Changed the movement of avatars so that they are made by a worker goroutine which will sleep for a second or so between movement calls. The main engine continues the calculation (in theory).
|
7 years ago |
Gwyneth Llewelyn
|
3e8b3e57b6
Added NullUUID for manually selecting avatar, too!
|
7 years ago |
Gwyneth Llewelyn
|
d480f390b4
More changes for setting profile + image
|
7 years ago |
Gwyneth Llewelyn
|
85988b1665
Fixed bugs in testing for nil from an in-world HTTP response! (the reverse was intended!)
|
7 years ago |
Gwyneth Llewelyn
|
9f8d1fdb07
Added changes for setting profile + image.
|
7 years ago |
Gwyneth Llewelyn
|
219e9a19bb
Fixed bugs with returning values for http_response…
|
7 years ago |
Gwyneth Llewelyn
|
3bc986915f
Added option for NullUUID on the manual selection for a cube, because now we allow the user to override everything.
|
7 years ago |
Gwyneth Llewelyn
|
b09dd05516
In case of error, returns a bit more information (name of command that failed)
|
7 years ago |
Gwyneth Llewelyn
|
3c07ff5ed8
Add support for the “ping” command. We will need that for the Garbage Collector to know which objects are active and which are not.
|
7 years ago |
Gwyneth Llewelyn
|
6afb1595ca
Add support for receiving commands. We will need that for the Garbage Collector to know which objects are active and which are not.
|
7 years ago |
Gwyneth Llewelyn
|
f31de139fe
Sanitising spaces to tabs.
|
7 years ago |
Gwyneth Llewelyn
|
65cbb237f4
Changes to make it less chatty, and added a ping/pong for the garbage collector to know this object is still active.
|
7 years ago |
Gwyneth Llewelyn
|
c60d8306bc
First round of debugging the engine. Added a bit more control over when to send messages (if the websocket is down) instead of timing out. JavaScript on the browser will now parse messages for engine ‘alerts’ to keep a similar UI than the PHP version (but HTML is on the template, not on the engine code side).
|
7 years ago |
Gwyneth Llewelyn
|
23677dbb0f
Full port of old PHP code finished. Now it’s debugging time, since there are clear differences in the results! Also, it seems that Go is four times slower; that has to be checked!
|
7 years ago |
Gwyneth Llewelyn
|
0e5c7864b0
Added the whole genetic algorithm to engine.go! There is just one last step before heavy debugging: actually giving the avatar the order to *move*, and save everything to the database. This was a massive porting from the old PHP code!
|
7 years ago |
Gwyneth Llewelyn
|
e03dbca4b0
Tried to sort things after generating population, but this doesn’t work yet.
|
7 years ago |
Gwyneth Llewelyn
|
c569b8dfd4
Adding initial population generation
|
7 years ago |
Gwyneth Llewelyn
|
22bb4d41c1
Adding some timing (just like the PHP version)
|
7 years ago |
Gwyneth Llewelyn
|
d89fd75d18
For the GA, changed Agents/Cubes to maps by UUID; added code to deal with user manually setting the cube (this still panics!)
|
7 years ago |
Gwyneth Llewelyn
|
893e9a904d
Simplifying calcDistance to make it FASTER!
|
7 years ago |
Gwyneth Llewelyn
|
a14f4e9fde
First checks to see what is the closest obstacle to each NPC.
|
7 years ago |
Gwyneth Llewelyn
|
2c89ff8db9
Fixed code to include an event listener; this is crucial to clone avatars in-world!
|
7 years ago |
Gwyneth Llewelyn
|
200b6faf4a
Tweaking columns on the agGrid to make them more readable
|
7 years ago |
Gwyneth Llewelyn
|
8066af0b5d
New schema for MySQL, which has considerable changes from sqlite3.
|
7 years ago |
Gwyneth Llewelyn
|
62fc1fb6ac
Moved LastUpdate to become a Timestamp, now it occupies less space, so reflected the new length on the agGrid columns
|
7 years ago |
Gwyneth Llewelyn
|
c5e40d9947
Warned potential users that MySQL configuration still might not work.
|
7 years ago |
Gwyneth Llewelyn
|
56b677056d
Moving to MySQL. sqlite3 has problems with too much concurrency. Bug to be fixed: get unique indexes!
|
7 years ago |
Gwyneth Llewelyn
|
955861466c
Used https://github.com/mattn/go-sqlite3/issues/39 to try to fix the problem with locked database
|
7 years ago |
Gwyneth Llewelyn
|
c0bb36d673
Trying to find a bug where the database gets locked and never unlocks again.
|
7 years ago |
Gwyneth Llewelyn
|
3682877317
First tweaks for the preparation of the engine
|
7 years ago |