Expanding rpdump
Posted: Fri Sep 23, 2011 9:00 pm
Affects: Server-Side/Commands
Summary: Expand upon the specific abilities of rpdump and how it stores/loads information.
Suggestion: As it stands, you can create a 'dump' of all spawnpoints, npcs, securitydoors (essentially saving everything in a static state). This is useful, and can allow a great deal of prep-work to be done ahead of time, for that specific map. On top of that, only one dump may be made for that map (insofar as I am aware), and when the map loads it will auto-load that dump along with it (set spawn points, spawn npcs, and create security locks on doors).
I would propose that when a dump is made, instead of saving as a .cfg for that specific map, one could write a generic .cfg, with the ability to load said dump on demand instead of on-mapchange.
/rpdump all burrito
and
/rpdump load burrito
Would write all available settings to burrito.cfg to the server's directory, and likewise, load it again (without a map restart).
This way, missions/scenarios/etc. can be set up server-side at the leisure of the admin, and prep-time can be better spent going over character roles or plot or what have you.
Likewise, an rpclearall confirm command would be nice, to execute npc kill all, rpweather remove all, rpspawnpoint remove all (not reallyall), rpmusic default, rpsound remove all, rpsecuritydoor remove all, and any other settings to return the current map to it's default settings (again, without a map restart).
Also, no idea if it's possible, but if you could also dump weather, rpshader, and music, that'd be nice too.
Implementation: What do you take me for, some kind of programmer or something? My best guess would be to save everything in a form that can be exec'ed easily.
References: The RPMod Commands List.
Summary: Expand upon the specific abilities of rpdump and how it stores/loads information.
Suggestion: As it stands, you can create a 'dump' of all spawnpoints, npcs, securitydoors (essentially saving everything in a static state). This is useful, and can allow a great deal of prep-work to be done ahead of time, for that specific map. On top of that, only one dump may be made for that map (insofar as I am aware), and when the map loads it will auto-load that dump along with it (set spawn points, spawn npcs, and create security locks on doors).
I would propose that when a dump is made, instead of saving as a .cfg for that specific map, one could write a generic .cfg, with the ability to load said dump on demand instead of on-mapchange.
/rpdump all burrito
and
/rpdump load burrito
Would write all available settings to burrito.cfg to the server's directory, and likewise, load it again (without a map restart).
This way, missions/scenarios/etc. can be set up server-side at the leisure of the admin, and prep-time can be better spent going over character roles or plot or what have you.
Likewise, an rpclearall confirm command would be nice, to execute npc kill all, rpweather remove all, rpspawnpoint remove all (not reallyall), rpmusic default, rpsound remove all, rpsecuritydoor remove all, and any other settings to return the current map to it's default settings (again, without a map restart).
Also, no idea if it's possible, but if you could also dump weather, rpshader, and music, that'd be nice too.
Implementation: What do you take me for, some kind of programmer or something? My best guess would be to save everything in a form that can be exec'ed easily.
References: The RPMod Commands List.