Getting started on MacOS
Posted: Fri Sep 16, 2022 11:27 pm
Hello, all!
I've made a fork here: https://gitlab.com/Zamua/2009scape. I tried following the steps in the README, but I'm seeing errors.
I tried running the build, but multiple tests fail. here's some of the output below (not all)
I tried a quick build, and that was successful
then i tried to run
I saw some errors that i thought may be related to not having a database setup, but I didn't see any instructions for setting up the db. I tried to get that setup myself, but then still ran into
issues
I thought maybe it's because mysql wasn't up or was on the wrong port, but it seems to be running and it's on port 3306. i saw the default.conf file specifies the db info and i think mine is the same. i have root user, no password, port 3306, localhost, and I've sourced the global.sql file
here's the port
let me know if i've missed some important documentation or if you need anymore from me. thanks!
I've made a fork here: https://gitlab.com/Zamua/2009scape. I tried following the steps in the README, but I'm seeing errors.
I tried running the build, but multiple tests fail. here's some of the output below (not all)
Code: Select all
./build -mg
...
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ExchangeTests.manyCompletedOffersAboveDefaultPriceShouldInfluencePriceUpwards:92 Price was not influenced in the expected way! New Price: 1, default: 1 ==> expected: <true> but was: <false>
[ERROR] RegionSpecificationTests.shouldCopyExistingRegionIfRequested:31 expected: <36782> but was: <null>
[ERROR] RegionTests.testDynamicRegionHasSameObjects:42 Dynamic and standard have differing object counts! ==> expected: <true> but was: <false>
[ERROR] RegionTests.testObjectExistsInDynamicRegion:60 Object does not exist at expected location! ==> expected: <36782> but was: <-1>
[ERROR] RegionTests.testObjectExistsInStandardRegion:50 Object does not exist at expected location! ==> expected: <36782> but was: <-1>
[ERROR] RegionTests.testRegionLoad:21 Region has no objects! (Failed to parse?) ==> expected: not equal but was: <0>
...
[ERROR] Tests run: 118, Failures: 23, Errors: 34, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.014 s
[INFO] Finished at: 2022-09-16T19:19:27-04:00
[INFO] ------------------------------------------------------------------------
Code: Select all
./build -qmg
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.946 s
[INFO] Finished at: 2022-09-16T19:20:56-04:00
[INFO] ------------------------------------------------------------------------
Code: Select all
./run
...
/Users/zamua/Dropbox/workspace/2009scape/Server/target/server-1.0.0-jar-with-dependencies.jar -> /Users/zamua/Dropbox/workspace/2009scape/builddir/server.jar
Running in parallel. All logs redirected to proper files.
[19:22:07]: [INFO] Using config file: worldprops/default.conf
[19:22:07]: [INFO] Prompting 2009scape Game World...
[19:22:07]: [INFO] Initializing cache...
[19:22:07]: [ ERR] Error loading cache index 0: no information.
[19:22:07]: [ ERR] Error loading cache index 1: no information.
[19:22:07]: [ ERR] Error loading cache index 2: no information.
[19:22:07]: [ ERR] Error loading cache index 3: no information.
[19:22:07]: [ ERR] Error loading cache index 4: no information.
[19:22:07]: [ ERR] Error loading cache index 5: no information.
[19:22:07]: [ ERR] Error loading cache index 6: no information.
[19:22:07]: [ ERR] Error loading cache index 7: no information.
[19:22:07]: [ ERR] Error loading cache index 8: no information.
[19:22:07]: [ ERR] Error loading cache index 9: no information.
[19:22:07]: [ ERR] Error loading cache index 10: no information.
[19:22:07]: [ ERR] Error loading cache index 11: no information.
[19:22:07]: [ ERR] Error loading cache index 12: no information.
[19:22:07]: [ ERR] Error loading cache index 13: no information.
[19:22:07]: [ ERR] Error loading cache index 14: no information.
[19:22:07]: [ ERR] Error loading cache index 15: no information.
[19:22:07]: [ ERR] Error loading cache index 16: no information.
[19:22:07]: [ ERR] Error loading cache index 17: no information.
[19:22:07]: [ ERR] Error loading cache index 18: no information.
[19:22:07]: [ ERR] Error loading cache index 19: no information.
[19:22:07]: [ ERR] Error loading cache index 20: no information.
Exception in thread "main" java.lang.NullPointerException
at core.cache.Cache.getItemDefinitionsSize(Cache.java:234)
at core.cache.def.impl.ItemDefinition.parse(ItemDefinition.java:289)
at core.cache.Cache.init(Cache.java:69)
at rs09.game.world.GameWorld.prompt(GameWorld.kt:166)
at rs09.game.world.GameWorld.prompt(GameWorld.kt:153)
at rs09.Server.main(Server.kt:63)
[1] 24450 terminated ./run
issues
I thought maybe it's because mysql wasn't up or was on the wrong port, but it seems to be running and it's on port 3306. i saw the default.conf file specifies the db info and i think mine is the same. i have root user, no password, port 3306, localhost, and I've sourced the global.sql file
Code: Select all
brew services
...
mysql started zamua ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
...
mysql -uroot
mysql> use global;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables
-> ;
+------------------+
| Tables_in_global |
+------------------+
| members |
| worlds |
+------------------+
2 rows in set (0.00 sec)
Code: Select all
mysql> SHOW GLOBAL VARIABLES LIKE 'PORT';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port | 3306 |
+---------------+-------+
1 row in set (0.01 sec)