Gwyneth Llewelyn
|
a18457f9a3
Chore: Bump to 1.20; clean up old dependencies
|
1 년 전 |
Gwyneth Llewelyn
|
32af871fbe
A few changes, now that my linter is working inside Nova!
|
3 년 전 |
Gwyneth Llewelyn
|
acd58812ec
Small change in comments.
|
6 년 전 |
Gwyneth Llewelyn
|
a74fbcf140
Stupidly was subtracting current time from start time, when Go has time.Since(time_start)… duh!
|
7 년 전 |
Gwyneth Llewelyn
|
b271725217
Added a new functionality: running just one step of the simulation, then stop the engine. This replicates the functionality of the old PHP code and makes it easier to debug.
|
7 년 전 |
Gwyneth Llewelyn
|
ef247ae89c
Added the text table prettifying functionality again, as the @jaytailor (maintainer of html2text) fixed the issue — it was an edge case on my side, where the number of header columns didn’t match the number of data columns (which is valid HTML, but html2text panicked).
|
7 년 전 |
Gwyneth Llewelyn
|
8af584fa47
Added an extra check if the grid is not running: this will make the engine try over and over again to connect to the database, but fail with a panic when it hits the limit of open connections. The current code will check if the database is open and wait 10 seconds to retry again, without panicking.
|
7 년 전 |
Gwyneth Llewelyn
|
cfbbb30b88
There are some strange errors in the engine where PDO_Prefix sometimes is ‘forgotten’. I don’t know if it has anything to do with the reloading of the config. So I’ve added a few checks for PDO_Prefix and GoBotDSN to reload the configuration strings on each and every cycle (probably overkill).
|
7 년 전 |
Gwyneth Llewelyn
|
0c1b5b9033
More minor changes for getting almost-perfect logging. Also tested how messages go to syslog, as well as reloading the configuration and seeing everything working again.
|
7 년 전 |
Gwyneth Llewelyn
|
cc91db205a
Fixing minor bugs related to the new logging mechanism. Now it should be auto-configured as well every time the configuration changes…
|
7 년 전 |
Gwyneth Llewelyn
|
70ac188c7b
First attempt at a major change towards the go-logging logger plus lumberjack log rotator.
|
7 년 전 |
Gwyneth Llewelyn
|
f8e6559c3a
Begin transition for new logging package. The purpose is to make sure all logs are kept ‘somewhere’ between sessions.
|
7 년 전 |
Gwyneth Llewelyn
|
8b9348a908
Implemented the basic functionality of the cubes: when an avatar sits on them, it gets ‘recharged’. The GA is still very simple, it tries to go next to the nearest cube for the lowest setting it has. In the future, this may be implemented in the GA as well. Note: the GA still needs a LOT of fixing, since it hardly sends the avatars to the right place!
|
7 년 전 |
Gwyneth Llewelyn
|
9136d682d2
Several changes when formatting errors; also deals better with the way the engine is started and stopped (responding to SIGHUP)
|
7 년 전 |
Gwyneth Llewelyn
|
5941fb57ed
Several changes preparing code to deal with NPCs sitting on the cubes. Some LSL was also changed, because if the llSitTarget is not set, it will *always* return the Null_UUID.
|
7 년 전 |
Gwyneth Llewelyn
|
1c8fea6a38
Attempted to make web sockets a bit more persistent, but this eventually crashes the system; ideally, either they work, or it’s worthless waiting for them to work again, it’s better just to exit the loop and wait until the client calls our functions again…
|
7 년 전 |
Gwyneth Llewelyn
|
85feb19961
Fixed some bugs, now the same bot should not be run
|
7 년 전 |
Gwyneth Llewelyn
|
2f6391252a
Implementing the engine’s main loop as an endless loop, where each time a new agent is selected for running. This will allow agents come in and go away (as well as master controllers!). I’m also trying to implement a method for avoiding that the same avatar gets picked over and over again.
|
7 년 전 |
Gwyneth Llewelyn
|
4eb1c759de
The HTML2TEXT pretty-printifier breaks on the tables, so the tables are sent as simple lines of text - not so nice, but at least it doesn’t break down!
|
7 년 전 |
Gwyneth Llewelyn
|
449949c3b6
Added a pretty-printifier for the log output when it includes HTML…
|
7 년 전 |
Gwyneth Llewelyn
|
4269c79f2a
Added support for colourful output in the logs. It’s silly but looks great! :)
|
7 년 전 |
Gwyneth Llewelyn
|
42938b3b86
Trying to fix angles, and calculating smoothness, even though we aren’t using it, since somewhere we have a few math errors…
|
7 년 전 |
Gwyneth Llewelyn
|
14a49b0c22
When calculating angles, why was I using ABS()? This will almost always return zero, since angles are in radians…
|
7 년 전 |
Gwyneth Llewelyn
|
7228956748
Corrected a tiny bug when a message to change an htmlControl had the wrong subtype ‘false’ instead of ‘disable’.
|
7 년 전 |
Gwyneth Llewelyn
|
8912ea025c
Fixed a terrible bug when converting the bot’s current position, it came out as 0,0,0, thus the move to origin. Right now, with several bots, they seem to walk each one step at the time. This should be more in parallel, and that might come from the blocking messaging queue.
|
7 년 전 |
Gwyneth Llewelyn
|
b03326b810
There is some faulty logic here, as the ‘bot needs to go to the FIRST point in the path (it was being sent to ALL the points) since the path will be recalculated anyway at each point. Currently, there is a huge problem in the scattering of the population, it’s always close to the origin (0,0,Z) instead of being around the current position (?). Needs further checking!
|
7 년 전 |
Gwyneth Llewelyn
|
b934acdfd6
The current solution does not deal gracefully with agents that die or newly appear; added some comments for implementing a new solution which looks up the Agents table every cycle and picks one Agent randomly for running. This is not perfect since some Agents might never get a chance to run again, so it needs careful thinking.
|
7 년 전 |
Gwyneth Llewelyn
|
da5fef96d9
Fixed some bugs with the garbage collector; also, if the main engine cannot find any master controller, instead of panicking, it gives 10 seconds for the user to fix that (usually resetting the master controller in-world is enough)
|
7 년 전 |
Gwyneth Llewelyn
|
6f1678fdb4
Cleaned up some duplicated messages, making sendMessageToBrowser also log messages if they are of a subtype that matters (info, success, warning, error)
|
7 년 전 |
Gwyneth Llewelyn
|
3109218af5
Cleaned up GA feedback by adding Agent’s Name everywhere; this is necessary because we are possibly running many Agents in parallel (or almost).
|
7 년 전 |