[2.3] assembleWeaponTemplate() is multiplayer-unsafe?

For AI and campaign script related discussions and questions
Post Reply
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

[2.3] assembleWeaponTemplate() is multiplayer-unsafe?

Post by NoQ »

Just had some work on an AI for NRS (which is 2.3-only thing), and found out that when an AI uses assembleWeaponTemplate() to produce things newly produced droids with templates assembled this way don't show up at all on the client's screen (but only on the host's screen). Is there a workaround for that?

Cause this function is being successfully used by Semperfi on 3.1.

Edit: i'm also having errors like

Code: Select all

error   |10:19:54: [recvDroid] Packet from 0 refers to non-existent template 163339, [AI : p3]
on the client.
User avatar
Iluvalar
Regular
Regular
Posts: 1828
Joined: 02 Oct 2010, 18:44

Re: [2.3] assembleWeaponTemplate() is multiplayer-unsafe?

Post by Iluvalar »

I found this in scrAssembleWeaponTemplate(void)

Code: Select all

			if (bMultiMessages)
			{
				sendTemplate(pNewTemplate);
			}
Shouldn't that work ? or should I assume bMultiMessages at this point is off ?
Heretic 2.3 improver and proud of it.
Post Reply