[Fixed]/spawn add problem

Old bugs stored here for reference.
Locked
Durge
Posts: 94
Joined: Sun Jan 03, 2010 11:45 am

[Fixed]/spawn add problem

Post by Durge » Sun Jul 08, 2012 2:21 pm

After I added one npc to my new zone and I added a spawn for him, every spawn after that I try to add is trying to duplicate the first spawn's ID, no idea why it wants to copy the first spawn, but I can't seem to add any npcs to the zone now.
Image

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: /spawn add problem

Post by Jabantiz » Sun Jul 08, 2012 8:32 pm

I can confirm this bug, /spawn add new is attempting to add a spawn with an id of zone_id * 10000 but if that id already exists it just gives a db error in the console, I will be looking into this.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: /spawn add problem

Post by Jabantiz » Sun Jul 08, 2012 8:55 pm

Fixed this bug and submited code to dev svn, locking this topic.

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:

Re: [Fixed]/spawn add problem

Post by John Adams » Mon Jul 09, 2012 10:48 am

FYI, I recently added this new spawn_id calculation code to World, so new spawns would fit into the current zone_id * 10000 scheme we decided on years ago. I see the fix, and that was dumb of me to not bump it +1 ;) Sorry. I had tested it on an empty DB, not one with spawns already in it :oops:

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: [Fixed]/spawn add problem

Post by Cynnar » Wed Jul 26, 2017 9:27 pm

Flagged to be archived.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

Locked

Who is online

Users browsing this forum: No registered users and 0 guests