Christian
dddb9b3189
Add some starting work for a forge tps command. Also update coremod for new FML behaviour
2013-08-27 23:07:30 -04:00
Christian
b4116f1f31
Fix possible NPE in ChunkManager. Closes #478 in reality
2013-03-28 08:19:24 -04:00
LexManos
16475908be
Rework configuration, configs should now use Config.hasChanged to deterne if thehould call save(), also re-worked the saving to not use String.format as much.
2013-03-04 16:33:52 -08:00
LexManos
f703dbb230
clarify what the size is measured in for the dormant chunk cache. -.-
2013-02-23 11:51:16 -08:00
LexManos
30db577389
Moved warning logic down, so that no more tickets are isues if the mod is over it's alotment. Fixes #378
2013-01-28 16:36:03 -08:00
Christian
695b080197
Fix NPE causing issue with the cache. Derpy derp.
2013-01-26 10:24:48 -05:00
Christian
ae7e328228
Fix a potential problem with "Entity already added" when using the dormant
...
chunk cache capability. The entities in the dormant chunk cache will get new
IDs prior to the cached chunk returning.
2013-01-25 21:21:20 -05:00
Christian
c40c81924a
Some javadoc fixes
2013-01-21 21:57:48 -05:00
LexManos
9833c5652c
Removed all functions marked as deperacted for the new MC version
2012-12-18 05:28:09 -08:00
LexManos
061ab81041
Automatically resolved imports.
2012-12-12 21:58:35 -08:00
LexManos
c68dfae100
Fix type in ForgeChunkManager.ticketCountAvaILableFor, thanks iChun PR: #285
2012-12-12 02:16:23 -08:00
Christian
6bc367f005
Fix static method, closes #271
...
Don't spam the log if a mod requests a ticket beyond their maximum. A single message is fine.
2012-12-06 16:14:15 -05:00
GuntherDW
021ec72f11
Fix typo in chunkmanager config
2012-12-06 09:31:06 +01:00
Christian
784ad96194
Add in some additional ticket loading callbacks for ChickenBones. Closes #284
...
Add in a call to determine if there are possible chunktickets for a world. This should let
Mystcraft and other dynamic world generating mods check if they should immediately load
a world based on existing chunk tickets.
2012-12-02 00:56:53 -05:00
LexManos
fdb2933ceb
Fix logic issue in ForgeChunkManager.ticketCountAvaliableFor(username) PR
2012-11-29 04:04:03 -08:00
LexManos
cbe52abe42
Exposed some ChunkLoader information for PR #278
2012-11-27 15:28:59 -08:00
LexManos
81b5db6f37
Added new functions to the Config class to allow for specification of comments when getting properties.
...
Added new getTerrainBlock whihc will limit the resuling ID to < 256, useful for world gen.
Calls to getBlock with IDs less then 256 will be assigned values above 256 {Thus freeing up terrain gen slots}
Made ConfigCategory implement Map<String, Propertery> should fix compatibility with most mods that broke two builds ago.
2012-11-27 02:06:29 -08:00
LexManos
88f9fa75c9
New nested configuration category support, for PR #258
2012-11-26 23:46:01 -08:00
iChun
1e8c2a9acf
Add check that Entity saves to disk before saving entity to saved chunkloading data.
...
Returning false to addEntityID prevents the entity from being saved (cred to LexManos)
Entities which do not save to disk but are chunkloaders causes errors the next time the world loads. This ought to fix it.
2012-11-24 16:27:17 +08:00
Christian
913f3adade
Stupid eclipse resetting preferences. Spaces, not tabs!!!
2012-11-18 19:33:15 -05:00
Christian
ed252ad8ed
Add in events when forcing and unforcing chunks. Hope this works for you ChickenBones!
2012-11-18 19:28:02 -05:00
Christian
efcda1a946
Fix the accessor and type on World.getPersistentChunksFor()
...
Update FML: 8bd98c3
8bd98c3 Fix a small problem with the new MCP container- it can cause NPEs. Nice.
34cc42d Fix up some javadoc complaints
2012-10-26 21:13:56 -04:00
Christian
8d5b8a81fe
Reorganize the forced chunks a bit- offload the cost of immutable map building to the mods, rather than the chunk tick
2012-10-14 12:30:33 -04:00
LexManos
5514bd39c9
Add some accessors to teh ChunkLoader tickets.
2012-10-11 18:27:51 -07:00
Christian
8e92472409
Use weak references to the worlds in our maps. WorldClient would otherwise
...
leak all over the show.
2012-10-06 21:32:41 -04:00
Christian
b227d7ce73
Dormant chunk cache might actually work now, and not mix chunks across worlds
2012-09-28 17:04:26 -04:00
Christian
fbae118a2f
A few requested features of ForgeChunkManager. Mods can specify a
...
chunkloading config directly in the config file, including chunk
loading overrides if they wish (and the config allows them).
Also added "player" tied tickets that bind to the player and not the
mod's quota.
2012-09-27 23:38:27 -04:00
Christian
384f795d52
Some more tweaks to the chunkloading code. The world.load event fires slightly later- once the entity watcher is
...
set up, so entities can actually load into the server world. Also, tickets actually save and load properly
and null entities don't break the server
2012-09-25 19:12:10 -04:00
LexManos
27e4c3c3d5
Changed Configuration to use overloaded methods, and changed the order of arguments to be Category, Key, Value instead of Key, Category, Value to hopefully help cleanup some peopels code.
...
Added function to get a free Item id. Will only accept values that are not in the block space. Needs testing.
Marked all the old getOrCreate* functions as deprecated.
2012-09-24 22:33:56 -07:00
Christian
8c74d81103
Fix up some config file handling to be even more resilient.
2012-09-24 23:15:36 -04:00
Christian
76f3b26aa3
Fix some errors if the config is unparseable. It should log an exception and carry on with defaults.
2012-09-24 23:03:31 -04:00
Christian
a776afe1bf
More modifications to the ticket callback handling system. There are up to two callbacks during world loading now. One to allow
...
selective preference for ticket types. The other to actually allow the mod to force chunks.
2012-09-24 22:07:39 -04:00
Christian
595d3e9e79
Some changes to the ForgeChunkManager.
...
Null modData is allowed now.
The entity id is actually properly persisted in the ticket now.
There is a new "orderedLoadingCallback" that allows you to provide a preferred ticket loading order in case of "excess tickets". Also, tickets
that are not in the returned list are now unregistered.
There is a way to resort the chunks in the forced chunklist on a ticket now.
Log the dormant cache configuration
2012-09-24 17:38:41 -04:00
Christian
0fd2b137ac
Some more fixes for chunkloading code. Works very reliably now.
2012-09-23 23:08:38 -04:00
Christian
56a87604f6
Simple chunk caching capability for the chunkloader. This will store "dormant" chunks in a
...
configurable cache, potentially saving the cost of reloading them from disk.
2012-09-23 23:08:38 -04:00
Christian
0b68cf93ff
And a concurrentmodificationexception in the same code
2012-09-23 23:08:38 -04:00
Christian
0ac8d6ad3e
Fix NPE in ForgeChunkManager
2012-09-23 23:08:38 -04:00
Christian
9640c5dcf9
A lot of tweaks to the chunkloading for entity behaviour. Entities are now bound by a new
...
persistent id they *all* have, on the server side.
2012-09-23 23:08:38 -04:00
Christian
c684360f51
Working cross dimensional implementation of chunkloading for Forge.
2012-09-23 23:08:38 -04:00