Page 1 of 1

Rerun world_init() in game

Posted: Thu Mar 06, 2008 3:13 pm
by John Adams
Not sure if this is possible entirely, but mostly I am looking for a way where I do not have to take down the world each time I add new NPCs, items, spells etc to the DB. Right now if you start with 100 NPCs spawned in a zone, log into the world, you can see those 100 npcs. However, if you add 100 more spawns directly to the database, you cannot see them even if you shut down the zone and re-start it unless you stop the world and seemingly get a new count of total NPCs at startup.
This might extend to other things that look to be loaded at world startup:

Code: Select all

[Status] Loading opcodes..
[Status] Loading structs..
[Status] Loading command list..
[Status] Loaded 21 entity command lists.
[Status] Loaded 2404 NPCs.
[Status] Loaded 0 Objects.
[Status] Loaded global variables list..
[Status] Loaded visual states list..
[Status] Loading World Time..
[Status] Loading items.. (this might take a few minutes)
[Status]        Loaded 74 Bags
[Status]        Loaded 433 Foods
[Status]        Loaded 928 Weapons
[Status]        Loaded 0 Armor Pieces
[Status]        Loaded 5590 Regular Items
[Status] Loading spells..
[Status]        Loaded 1 Spell(s)
[Status] Loading factions..
[Status]        Loaded 36 Factions
[Status] Loading skills..
[Status]        Loaded 129 Skills
[Status] Loading EQ time of day..
Is it possible? Mostly for data that will change during development or customization. Opcodes, visual_states, things like that could remain at runtime.

Posted: Thu Mar 06, 2008 3:44 pm
by link2009
How about a reload_database() function?

Posted: Tue Sep 02, 2008 4:39 pm
by John Adams
LE has most of these implemented via the /reload command in-game. We still cannot reload new NPCs added, but that has turned out to not be a requirement for DB development. We am spawning entire zones to work on to completion, then moving to the next - so slowing adding "spawns" is no longer an issue.
We can
/settime
/reload structs
/reload spells
/reload items
/reload luasystem
/reload spawnscripts
/reload spells
/reload quests
That's a pretty good list. Archiving. :)