[Not a request] DECORATE Parsing: A strange stuff happening

Moderator: GZDoom Developers

DECORATE Parsing: A strange stuff happening

Postby Ahpiox » Mon Aug 13, 2018 6:50 am

It's not so suggestion, but still. (Sorry, hello with english bad)
I think actual DECORATE parse works kind of strange, it is:
For example, there is pk3 file with DECORATE lump, which is includes "actors/missiles.txt","actors/sfx.txt" and "actors/weaps.txt". And actor PlasmaParticleExploding(from missiles) want to use GlowParticle(which is from sfx) as base.
But second actor is written in another .txt, so when PlasmaParticleExploding trying to use GlowParticle as base, error happens. What's reason for that?
And familiar situation happens with replacing: For example, when ImpieRandomSpawner2 tries to replaces ImpieRandomSpawner from another pk3/wad - GZdoom thinks ImpieRandomSpawner2 trying replace "non-existing" ImpieRandomSpawner, BUT ImpieRandomSpawner IS ACTUALLY HERE IN ANOTHER PK3/WAD.
User avatar
Ahpiox
THIS IS A BRAND NEW HIP-HOP MIX STRAIGHT FROM THE STREETS! HOT 97 TO YOU!
 
Joined: 22 Dec 2017
Location: Россия

Re: DECORATE Parsing: A strange stuff happening

Postby Graf Zahl » Mon Aug 13, 2018 7:20 am

You have to be careful about load order. Inheritance and replacing only work if the referenced class already exists, i.e. has been defined before the class doing the inheriting or replacing.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: DECORATE Parsing: A strange stuff happening

Postby Ahpiox » Mon Aug 13, 2018 7:44 am

Graf Zahl wrote:You have to be careful about load order. Inheritance and replacing only work if the referenced class already exists, i.e. has been defined before the class doing the inheriting or replacing.

Okay, i understand this. But in Zandronum that kind of replacing still work, idk why. Maybe because it's have special data 'buffer'. But still thanks
User avatar
Ahpiox
THIS IS A BRAND NEW HIP-HOP MIX STRAIGHT FROM THE STREETS! HOT 97 TO YOU!
 
Joined: 22 Dec 2017
Location: Россия

Re: DECORATE Parsing: A strange stuff happening

Postby Graf Zahl » Mon Aug 13, 2018 8:05 am

Then the load order is different. The DECORATE parser in Zandronum is mostly the same, just an older version.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: DECORATE Parsing: A strange stuff happening

Postby Ahpiox » Mon Aug 13, 2018 8:22 am

Graf Zahl wrote:Then the load order is different. The DECORATE parser in Zandronum is mostly the same, just an older version.

Im not so agree. RandomMons in Clusterf*ck-pack is loaded before patch, so it means special actors defined before that patch. And result is "Script error, "complex-CF-patch-v3.0.pk3:actors/spawner/spawner.txt" line 4: Replaced type 'SImpHiddenSpawner1' not found for NoMoreFakeStonesPls"...
User avatar
Ahpiox
THIS IS A BRAND NEW HIP-HOP MIX STRAIGHT FROM THE STREETS! HOT 97 TO YOU!
 
Joined: 22 Dec 2017
Location: Россия

Re: DECORATE Parsing: A strange stuff happening

Postby Graf Zahl » Mon Aug 13, 2018 8:24 am

If you want this checked you have to provide some minimal example to test.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests