Urgent APlayerPawn issues [Appveyor r3935 to r3936 versions]

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Re: Urgent APlayerPawn issues [Appveyor r3935 to r3936 versi

Postby Lord Misfit » Sat Feb 02, 2019 11:30 am

Okay, back and more awake now: so should I be trying to use things like Inventory Items as placeholders for vars in this case to get around this, or do I need to move the vars to the playerpawn and use them via invoker in the weapons' functions or something?

While I'm glad something seems to have been determined in what's going on here, I still need to figure out how to not have this happen in the meantime. >.>

Also it does make me wonder, why did this suddenly start messing with the player properties after Appveyor r3935 and not before it [or was it and I just somehow didn't notice]?
Last edited by Lord Misfit on Sat Feb 02, 2019 12:29 pm, edited 1 time in total.
User avatar
Lord Misfit
Servant of Aetherius? Servant of Siel?
 
Joined: 27 Dec 2006
Location: Canton, OH
Discord: Lord Misfit#9594

Re: Urgent APlayerPawn issues [Appveyor r3935 to r3936 versi

Postby _mental_ » Sat Feb 02, 2019 11:33 am

It always works this way.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Urgent APlayerPawn issues [Appveyor r3935 to r3936 versi

Postby Matt » Sun Feb 03, 2019 3:51 am

Lord Misfit wrote:Okay, back and more awake now: so should I be trying to use things like Inventory Items as placeholders for vars in this case to get around this, or do I need to move the vars to the playerpawn and use them via invoker in the weapons' functions or something

Once you've converted it to ZS, if a variable is properly something that's handled in the weapon, make it a variable in the weapon and use "invoker.<variablename>".

Until then, I'd use inventory items because custom playerpawn variables would require that the owner ("self" in the weapon state) be cast as that custom playerpawn class and that can't be done in DECORATE unless I've missed some new developments there.
User avatar
Matt
Putting the XD into *xdeath since 2007
 
 
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: Urgent APlayerPawn issues [Appveyor r3935 to r3936 versi

Postby Lord Misfit » Sun Feb 03, 2019 12:31 pm

Yeah I just did the latter [inventory items] since I have no idea when I'll really get into the drive to do a mass DECORATE-to-ZScript conversion process, or how long it'll take once I do. I haven't been mindlessly working on Aetherius in the last couple of months due to varying reasons [including a heatsink-replacement issue at the start of January], so yeah. :P

Still thanks for helping me to diagnose this problem so I can avoid doing it again. :V
User avatar
Lord Misfit
Servant of Aetherius? Servant of Siel?
 
Joined: 27 Dec 2006
Location: Canton, OH
Discord: Lord Misfit#9594

Previous

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest