SOA retail 13 december 2013 currently updating

gedads
Developer
Posts: 171
Joined: Fri Jan 04, 2013 7:48 pm

SOA retail 13 december 2013 currently updating

Post by gedads » Mon Nov 18, 2013 10:14 am

Hi all SOA mobs moves npcs
No scripts (reive npcs can be walked through with @wallhack or setting a script to open them (8 open 9 close, retail like would be on knotted roots... death). Missing flag "campaign/reive" for mobs (no sword near their names).
missing 4 parts of the 4 small gates areas( beyond reive npcs i can't have access in game, not lev 99 yet so i can't solo them).
mob groups pools family moves made to be out of reach of dsp update so it should be 100% dsp compatible.

Made today based on dsp trunk files, if any error let me know (these differs from the one on my server and are made only for people who use dsp db so there can be some mistakes i didn't saw)
23 november 2013:
Corrected zone 265 npc name displayed on bivouac npcs, missing main bivouac, some wall rotation in rala waterways
z 262 a broadleafpalm was @+XXX instead of -xxx
Mob groups and pools to remove mob MP warning when launching server


NPC_LIST MOVED TO LAST POST
MOB_POOL MOVED TO LAST POST
MOB GROUP MOVED TO LAST POST
MOB_SKILL MOVED TO LAST POST
MOB_SPAWN_POINT MOVED TO LAST POST
Updated version of those sql file will always be with the last post in that thread.
Last edited by gedads on Thu Dec 12, 2013 7:53 pm, edited 13 times in total.

gedads
Developer
Posts: 171
Joined: Fri Jan 04, 2013 7:48 pm

Re: SOA retail november 2013

Post by gedads » Mon Nov 18, 2013 11:08 am

zonelines Added some missing (from zone 265 to gate, from z 260 to gate)
+ script for onzonein to prevent getting stuck @ 0 0 0

Zoneline patch moved in the last post
Attachments
zones.rar
(71.08 KiB) Downloaded 747 times
Last edited by gedads on Sun Nov 24, 2013 7:36 pm, edited 3 times in total.

compmike19
Posts: 115
Joined: Wed Jan 23, 2013 11:14 pm

Re: SOA retail november 2013

Post by compmike19 » Tue Nov 19, 2013 9:58 am

Awesome work, you're the man for mob stuff!

gedads
Developer
Posts: 171
Joined: Fri Jan 04, 2013 7:48 pm

Re: SOA retail 23 november 2013

Post by gedads » Sun Nov 24, 2013 6:49 pm

Npc_list:
- corrected director @z256
- added MH mogs for z 256 and 257

zonelines: corrected wotg MH zonelines

zonein.cpp: added MH for wotg and SOA

changed zone.lua from sando S bastok S windurst S to match exiting MH (you can pass those and had if prevzone... as you wish)




PS: i have some difficulty to use some function (getnpcbyid returns error) in SOA areas (maybe because zone id >255). Compmike will try to look at it but if anyone has an idea how to fix it please let me know.
Attachments
zonelines.sql.patch
(151.42 KiB) Downloaded 725 times
MH WOTG EXIT.patch
(1.4 KiB) Downloaded 732 times
zone_in.cpp.patch
(1.22 KiB) Downloaded 722 times
Last edited by gedads on Wed Nov 27, 2013 11:58 am, edited 1 time in total.

GraveNET
Posts: 47
Joined: Mon Sep 23, 2013 8:05 am

Re: SOA retail 23 november 2013

Post by GraveNET » Mon Nov 25, 2013 9:29 am

gedads wrote:Npc_list:
- corrected director @z256
- added MH mogs for z 256 and 257

zonelines: corrected wotg MH zonelines

zonein.cpp: added MH for wotg and SOA

changed zone.lua from sando S bastok S windurst S to match exiting MH (you can pass those and had if prevzone... as you wish)




PS: i have some difficulty to use some function (getnpcbyid returns error) in SOA areas (maybe because zone id >255). Compmike will try to look at it but if anyone has an idea how to fix it please let me know.
You know with DSP setting up the project and you guys humping away at post wotg, you guys are AWESOME, I just wanted to say I've been away a bit because of family stuff but really appreciate everyones hardwork and look forward to testing some of these new items.

THANKS EVERYONE!

santssoft
Posts: 40
Joined: Tue Apr 30, 2013 5:41 am

Re: SOA retail 23 november 2013

Post by santssoft » Mon Nov 25, 2013 10:38 am

gedads wrote:Npc_list:
- corrected director @z256
- added MH mogs for z 256 and 257

zonelines: corrected wotg MH zonelines

zonein.cpp: added MH for wotg and SOA

changed zone.lua from sando S bastok S windurst S to match exiting MH (you can pass those and had if prevzone... as you wish)




PS: i have some difficulty to use some function (getnpcbyid returns error) in SOA areas (maybe because zone id >255). Compmike will try to look at it but if anyone has an idea how to fix it please let me know.
Change this function on zoneutils.cpp:

Code: Select all

CBaseEntity* GetEntity(uint32 ID, uint8 filter)
{
    return g_PZoneList[(uint8)(ID >> 12)]->GetEntity((uint16)(ID & 0x0FFF), filter);
}
To

Code: Select all

CBaseEntity* GetEntity(uint32 ID, uint8 filter)
{
    return g_PZoneList[(uint16)((ID >> 12) & 0x0FFF)]->GetEntity((uint16)(ID & 0x0FFF), filter);
}
To correct getnpcbyid for SOA areas
Last edited by santssoft on Mon Nov 25, 2013 5:12 pm, edited 1 time in total.

gedads
Developer
Posts: 171
Joined: Fri Jan 04, 2013 7:48 pm

Re: SOA retail 23 november 2013

Post by gedads » Mon Nov 25, 2013 3:27 pm

did it worked for you?

santssoft
Posts: 40
Joined: Tue Apr 30, 2013 5:41 am

Re: SOA retail 23 november 2013

Post by santssoft » Mon Nov 25, 2013 4:19 pm

I didn't test in the work, but the problem is the uint8, it's a unsigned int of 8 bits that supports only up to 255 (see the other iterations of g_PZoneList in the same file, they use a uint16).

Now I'm in home and I can test it.

gedads
Developer
Posts: 171
Joined: Fri Jan 04, 2013 7:48 pm

Re: SOA retail 23 november 2013

Post by gedads » Mon Nov 25, 2013 4:24 pm

Well, i crash upon loading the server with modifying only that int8, i tried yesterday to modify those in zoneutils, and everything related to getentity, sometimes it compiled but crash at launch sometimes it simply failed at compile.
if you manage to get a working fix, please let me know so i can remove my latest posts and anything unrelated to the main topic.(better in case of update than dozen of posts unrelated).

santssoft
Posts: 40
Joined: Tue Apr 30, 2013 5:41 am

Re: SOA retail 23 november 2013

Post by santssoft » Mon Nov 25, 2013 5:15 pm

I found the error, I edited my post with the correction: Change (uint8)(ID >> 12) to (uint16)((ID >> 12) & 0x0FFF) or use the path
Attachments
zoneutils.cpp.patch
(549 Bytes) Downloaded 745 times

Post Reply