Best way to avoid player TID conflicts with other PWADs?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
japboy
Posts: 26
Joined: Fri Mar 26, 2010 5:39 am
Location: Tokyo, JAPAN
Contact:

Best way to avoid player TID conflicts with other PWADs?

Post by japboy »

Hello. I'm currently working on a small modifiers for (mainly) Skulltag multiplay.

I made 2 modifiers named Coop Beacon & Item Drop. These aim to work separately with any other PWADs and on any game modes, still work in progress though :P

Anyway, I got some problems.

When I load these modifiers like below;

Code: Select all

skulltaag -iwad DOOM2.WAD -file coopbeacon-0.1.3.pk3 -file itemdrop-0.0.1.pk3
In any game modes and when any bot players are killed, I get error because of infinite loop as bot players seem to have infinite ammo. This error is caused by Item Drop actually. On the other hands, Item Drop also works fine on cooperative game mode without Coop Beacon or with it though loading before Item Drop.

Well I have no idea why this happens. Bot players seem to sometimes get infinite ammo and that cause Item Drop crash. This actually happens without Coop Beacon on deathmatch mode.

I'm still kinda noob about ACS and Doom editing though. Hopefully someone help me out! Thanks.

BTW, I tested on Skulltag only, but I believe this can be a topic related to ZDoom Forum.

UPDATE:
Well I think it is unclear why I put this subject to this topic. Please understand that my English still has to be improved :P
I guess this problem caused by conflicts of assigning player TIDs. It's just guessing though. That's why.
plausiblesarge
Posts: 75
Joined: Mon Feb 21, 2011 1:45 pm
Location: Sydney, Aus

Re: Best way to avoid player TID conflicts with other PWADs?

Post by plausiblesarge »

I dont really understand your problem as it is ill defined, but if you are having player TID problems, then you should try use PlayerNumber() instead wherever possible

You cant just change their TIDs because it will break other mods that rely on player TIDs
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

Re: Best way to avoid player TID conflicts with other PWADs?

Post by Demolisher »

plausiblesarge wrote:I dont really understand your problem as it is ill defined, but if you are having player TID problems, then you should try use PlayerNumber() instead wherever possible

You cant just change their TIDs because it will break other mods that rely on player TIDs
PlayerNumber really isn't useful for this, as very few functions take a PlayerNumber, and TID is more widely used.

If you want compatible player TID's, use a number like 255+PlayerNumber(), or 1024+PlayerNumber(), and keep it consistent.
Locked

Return to “Editing (Archive)”