simon
4293fc0315
Support for variable World size
2018-01-14 12:02:32 -05:00
Luc Lagarde
c610929809
Fix maven build error
...
Removes a reference to com.sun.istack.internal.Nullable and an associated annotation, which causes the maven build to fail.
2018-01-11 21:00:26 -06:00
simon
54b72e89b3
Fixes #121 + Saner thread safety
2018-01-09 22:10:55 -05:00
Simon Fortier
59fd620e4a
Merge pull request #118 from sg495/master
...
Implemented selective loading/unloading of worlds.
2018-01-09 20:35:41 -05:00
Jaggernaut555
7cbfb822b8
Updated LogManager
2018-01-09 14:00:36 -08:00
sg495
a04207b5e0
Added some cyphers for use in vault doors.
...
1. Created net.simon987.server.crypto package and moved RandomStringGenerator there.
2. Created CryptoProvider class, added a global instance to GameServer for use by game entities.
3. Created interface for cyphers, abstract class for shift substitution cyphers, classes for no cypher, Caesar cypher, Vigenere cypher and autokey cypher.
4. Created some Crypto exceptions.
5. Removed static encryption/decryption methods from VaultDoor, and moved getRandomPassword() to the global CryptoProvider instance.
2018-01-09 17:14:31 +01:00
simon
6fc583d6f0
Registers are cleared on code upload
2018-01-08 19:12:39 -05:00
sg495
46483b2bf8
Added a RandomString class from stackoverflow, to generate random alphanumeric strings (to be used as passwords).
...
Added some code to VaultDoor, including random password generation and code to encrypt/decrypt under a Vernam-like cypher.
Modified door opening policy to include the possibility of keeping the door open.
2018-01-08 20:40:50 +01:00
sg495
d65660b5e9
Merge branch 'master' of https://github.com/simon987/Much-Assembly-Required
...
# Conflicts:
# Server/src/main/java/net/simon987/server/GameServer.java
2018-01-08 18:28:37 +01:00
sg495
593be7624e
Implemented selective loading/unloading of worlds. Summary of changes:
...
1. Database is now iteratively updated, rather than dropped and recreated every time the universe is saved.
2. A single connection to the database is opened at server creation time, and used throughout.
3. Worlds, users and server information are now stored with appropriate IDs, so that they can be suitably updated. The world ID can be computed from world coordinates alone.
4. After saving, a world is unloaded from memory if it doesn't contain any updatable objects, and if all of its neighbours are either: (i) uncharted; (ii) not loaded in memory; (iii) without any updatable objects. This ensures that world unloading/reloading cannot be spammed by a single bot repeatedly transitioning in/out of an otherwise empty world.
5. The instance method GameUniverse.getWorld(int,int,boolean) first checks the world with given coordinates is in memory, then tries to load it from database, and only then creates a new one (if required by the boolean flag).
6. Worlds are now stored in a Hashtable indexed by world ID, for faster retrieval.
2018-01-08 18:23:10 +01:00
simon
a14853b12c
Changed working directory for tests (temporary fix?)
2018-01-07 14:04:24 -05:00
simon
735a231767
Moved tests to appropriate directory
2018-01-07 13:55:42 -05:00
simon
1131e4d512
Fixes #112 (Part two)
2018-01-07 13:29:42 -05:00
simon
cfb02869bb
Fixes #112
2018-01-07 13:02:49 -05:00
simon
cde03af8af
Fixes #113
2018-01-07 12:57:06 -05:00
Hayden Kroepfl
eaef30eb49
Added Inc and Dec instructions based off Add code
2018-01-06 18:53:35 -07:00
simon
f68027bb4d
Fixes tabs problem with equ
2018-01-06 14:04:31 -05:00
simon
24d81d194e
Fixes #107
2018-01-05 22:08:53 -05:00
simon
a8beb8c3e2
Fixes #115
2018-01-05 21:38:07 -05:00
simon
9bb0dc9034
Boilerplate code for Vault Door
2018-01-05 20:42:24 -05:00
simon
8b0460f5f1
Fixed typos and code cleanup
2018-01-05 20:14:38 -05:00
Dylan Sheehy
7e773699b6
Created Shield hardware
2018-01-05 11:04:05 -06:00
simon
9b908a5310
Biomass count on NPC death is loaded from config
2018-01-03 19:19:19 -05:00
Simon Fortier
8ceeca564a
Merge pull request #66 from jtara1/master
...
HarvesterNPC should spawn a biomass in-place after they die. Fixes #33
2018-01-03 19:00:55 -05:00
James T
3ded64cb16
Update #66 : add newest Server/Server.iml file
2018-01-02 15:29:14 -08:00
simon
4e76d57ef9
Loading & Saving support for MongoDB
2018-01-02 17:45:58 -05:00
simon
e2763faeee
Fixes #97
2018-01-01 15:58:42 -05:00
simon
2a8658c598
Fixes #90
2018-01-01 15:28:12 -05:00
simon
85548ec3cb
CHanged default energy value for biomass to 4000 + code styling
2018-01-01 15:21:39 -05:00
Simon Fortier
0f7b40f3ae
Merge pull request #95 from djsheehy/master
...
Inventory hardware: clearing a biomass yields energy. Fixes #94
2018-01-01 15:19:50 -05:00
simon
ee60216784
Small adjustments for laser hw, Improved OffsetOverFlow handling, Increased maximum guest count
2018-01-01 15:17:24 -05:00
Simon Fortier
c3a0d1bd4d
Merge pull request #93 from ChartreuseK/bug-80
...
Added handling of offset overflow and DUP factor overflow
2018-01-01 15:12:01 -05:00
Dylan Sheehy
cd8d883134
Charging energy from biomass now looks up value in config.properties
2018-01-01 13:39:57 -06:00
Simon Fortier
c7946a6356
Merge pull request #87 from ChartreuseK/bug-81
...
Added minimum length check to 'DW' parsing
2018-01-01 14:36:38 -05:00
simon
1e26c63358
Boolean result of ComPort actions are stored in B register
2018-01-01 12:03:36 -05:00
Simon Fortier
d832f65535
Merge pull request #84 from mlaga97/npc-combat
...
Allow ability to damage NPCs with Laser. Fixes #34
2018-01-01 11:07:04 -05:00
Hayden Kroepfl
e47e573b61
Added handling of offset overflow and DUP factor overflow, added new exception type.
2018-01-01 08:30:39 -07:00
Hayden Kroepfl
34178016b1
Added minimum length check to 'DW' parseing, fixes indexoutofboundsexception
2018-01-01 05:17:37 -07:00
Luc Lagarde
b31c187ad5
Allow NPCs to be damaged and killed
2017-12-31 18:26:44 -06:00
Ethan Lafrenais
deb3859dff
Add PUSHF and POPF instructions
2017-12-31 18:25:46 -05:00
Simon Fortier
cca68ba139
Merge pull request #69 from renpnal/patch-2
...
Fix typos
2017-12-30 20:00:25 -05:00
simon
83f05efff6
Support for color in hologram. Renamed classes: fixes #72
2017-12-30 19:58:47 -05:00
Jesse Nieminen
ea3b06c54c
Fix typos
...
Fixed typos in comments.
2017-12-30 23:52:06 +02:00
simon
1ed9e9e4db
Fixed bug that sent console buffer to random players for real this time
2017-12-30 16:41:14 -05:00
simon
08f1aa8686
Fixed bug that sent console buffer to random players.
2017-12-30 16:29:39 -05:00
simon
55d4c19fe1
Added Console output, Cubots can receive data from ComPort, Fixed BOM being added to string literals, Fixed legs changing direction for free when energy < 100, Changed some log levels.
2017-12-30 15:30:44 -05:00
James T
81767ed5cf
Updates for #66 : reorganize and relocate some methods and calls
2017-12-30 09:01:58 -08:00
simon
2ef6f492c4
Fixes #64
2017-12-30 11:14:45 -05:00
simon
70a55dce59
Added features to Hologram hardware - Fixes #63 and #67
2017-12-30 11:03:09 -05:00
simon
fe0be03ab8
Fixes #68 & Reformatted code
2017-12-30 10:35:56 -05:00