Rerun world_init() in game

Old feature requests stored here for reference.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Rerun world_init() in game

Post by John Adams » Thu Mar 06, 2008 3:13 pm

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.

link2009
Retired
Posts: 390
Joined: Fri Aug 10, 2007 5:59 pm
Location: POrTal
Contact:

Post by link2009 » Thu Mar 06, 2008 3:44 pm

How about a reload_database() function?
Image
-Vecinu de la Patru

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Tue Sep 02, 2008 4:39 pm

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. :)

Locked

Who is online

Users browsing this forum: No registered users and 0 guests