Author Topic: Encounter enemies no longer spawn with weapons...  (Read 2613 times)

Encounter enemies no longer spawn with weapons...
« on: April 17, 2015, 08:16:38 pm »
I don't know what happened, but all the enemies in the worldmap, the random encounter ones spawn without their weapons or items. The armor is there, but no guns. So every single humanoid is only using their fists. I can't figure it out. Maybe someone else can help guide me in the right direction, please?

The NPC's in towns are fine, and custom made enemies spawn with their proper bags in quest encounters. I made a combat script and // commented out the bag section, and added custom bags to that NPC PID using the Critter Editor. Is this possibly why my server is broken?

Upon server restarts and wipes, the issue still arises.

Owner of FOnline 2258! A true Fallout inspired adventure!
http://bit.ly/3syLeTp
http://www.fonline2258.com

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: Encounter enemies no longer spawn with weapons...
« Reply #1 on: April 18, 2015, 10:30:01 am »
Try to revert your changes until it starts working again, are you using version control? If so it shouldn't be too hard to track it down unless you made a lot of changes.

On a less general note, are there any errors in the server log?

Re: Encounter enemies no longer spawn with weapons...
« Reply #2 on: April 19, 2015, 04:26:42 am »
Try to revert your changes until it starts working again, are you using version control? If so it shouldn't be too hard to track it down unless you made a lot of changes.

On a less general note, are there any errors in the server log?

too many changes to track it down. There aren't any errors in the server log.

Owner of FOnline 2258! A true Fallout inspired adventure!
http://bit.ly/3syLeTp
http://www.fonline2258.com

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: Encounter enemies no longer spawn with weapons...
« Reply #3 on: April 19, 2015, 05:36:41 pm »
I would start trying to see if all the bags are working as they should by using the `addnpc command with -b parameter.

If this is working, then add some logging statements to https://github.com/rotators/fo2238/blob/master/Server/scripts/worldmap.fos#L2133-L2145 to see that the data is parsed correctly, there may actually be some unfixed bug in the saving of the critter data or the parsing. Especially if some files edited by the editor has been edited manually.

The formats used are a bit brittle, and I'd gladly accept pull requests to repo to use JSON instead for both groups and general worldmap data since Jovanka has now written an excellent parser. If someone is interested in doing that I could dust off the editor part and change the data format there (although the source is also available on Github).

Re: Encounter enemies no longer spawn with weapons...
« Reply #4 on: April 20, 2015, 07:31:42 pm »
I would start trying to see if all the bags are working as they should by using the `addnpc command with -b parameter.

If this is working, then add some logging statements to https://github.com/rotators/fo2238/blob/master/Server/scripts/worldmap.fos#L2133-L2145 to see that the data is parsed correctly, there may actually be some unfixed bug in the saving of the critter data or the parsing. Especially if some files edited by the editor has been edited manually.

The formats used are a bit brittle, and I'd gladly accept pull requests to repo to use JSON instead for both groups and general worldmap data since Jovanka has now written an excellent parser. If someone is interested in doing that I could dust off the editor part and change the data format there (although the source is also available on Github).

Hmm, still nothing it seems. If I modified critter data using the editor, or manually, and something broke. How can I fix that without reverting? This is very puzzling.

Btw thanks for all your hard work Ghosthack! Without you I would have never learnt The FOnline engine :)
Owner of FOnline 2258! A true Fallout inspired adventure!
http://bit.ly/3syLeTp
http://www.fonline2258.com

Offline Lexx

  • Rotator
  • Mexican Apple Thief
Re: Encounter enemies no longer spawn with weapons...
« Reply #5 on: April 21, 2015, 09:05:39 am »
If you are using a repository server, which I really hope you do, then simply revert to previous revisions until the bug doesn't appear anymore. At this point you should know which update caused the problems.
« Last Edit: April 22, 2015, 04:45:18 pm by Lexx »

Re: Encounter enemies no longer spawn with weapons...
« Reply #6 on: April 22, 2015, 02:56:48 am »
If you are using a repository server, which I realm hope you do, then simply revert to previous revisions until the bug doesn't appear anymore. At this point you should know which update caused the problems.

I did actually :) thanks guys.  I didn't fix the problem, but I was able to find the issue. Bug in the new encounter table or something silly.

edit: Lex, you're great too :)   

« Last Edit: April 22, 2015, 04:37:57 am by corosive »
Owner of FOnline 2258! A true Fallout inspired adventure!
http://bit.ly/3syLeTp
http://www.fonline2258.com