Either tell me which table it's in, or remove this warning

Either tell me which table it's in, or remove this warning

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Either tell me which table it's in, or remove this warning

Post by Forboding Angel »

Code: Select all

[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge-Blue: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge-Blue-emp: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge-green: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge-purple: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge-red: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge-white: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-large: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-large-blue: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-large-blue-emp: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-large-green: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-large-purple: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-large-red: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-large-white: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-medium: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-medium-blue: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-medium-blue-emp: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-medium-green: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-medium-purple: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-medium-red: unknown tag CSmokeProjectile::sizegrowth
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-medium-white: unknown tag CSmokeProjectile::sizegrowth
Ok, sounds simple to fix right?
/laughs maniacally in spring

Code: Select all

  ["genericbuildingexplosion-huge"] = {
    centerflare = {
      air                = true,
      class              = [[heatcloud]],
      count              = 1,
      ground             = true,
      water              = true, 
	  underwater         = true,
      properties = {
        alwaysvisible      = true,
        heat               = 10,
        heatfalloff        = 1.3,
        maxheat            = 20,
        pos                = [[r-2 r2, 5, r-2 r2]],
        size               = 1,
        sizegrowth         = 18,
        speed              = [[0, 1 0, 0]],
        texture            = [[flare]],
      },
    },
	
	-- put this next to groundflash
	explosionwave = {
      air                = true,
      class              = [[CSimpleParticleSystem]],
      count              = 1,
      ground             = true,
      water              = true, 
	  underwater         = true,
      properties = {
        airdrag            = 0.87,
        alwaysvisible      = true,
        colormap           = [[1 0.5 0 0.05	0 0 0 0.0]], -- same as groundflash colors
        directional        = false,
        emitrot            = 90,
        emitrotspread      = 5,
        emitvector         = [[0, 0, 0]],
        gravity            = [[0, 0, 0]],
        numparticles       = 1,
        particlelife       = [[200]], -- same as groundflash ttl
        particlelifespread = 0,
        particlesize       = 8, -- groundflash flashsize 25 = 1, so if flashsize is 200, particlesize here would be 8
        particlesizespread = 1,
        particlespeed      = [[8]],
        particlespeedspread = 6,
        pos                = [[0, 1, 0]],
        sizegrowth         = 3, -- same as groundflash circlegrowth
        sizemod            = 1.0,
        texture            = [[explosionwave]],
	  },
    },
	
    groundflash = {
      air                = true,
      alwaysvisible      = true,
      circlealpha        = 0.6,
      circlegrowth       = 3,
      flashalpha         = 0.6,
      flashsize          = 800,
      ground             = true,
      ttl                = 200,
      water              = true, 
	  underwater         = true,
      color = {
        [1]  = 1,
        [2]  = 0.5,
        [3]  = 0,
      },
    },
	
	smoke = {
      air                = true,
      count              = 8,
      ground             = true,
      water              = true, 
	  underwater         = true,
      properties = {
        agespeed           = 0.01,
        alwaysvisible      = true,
        color              = 0.1,
        pos                = [[r-60 r60, 24, r-60 r60]],
        size               = 10,
        sizeexpansion      = 0.6,
        sizegrowth         = 15,
        speed              = [[r-3 r3, 0.1 r1, r-3 r3]],
        startsize          = 10,
      },
    },
	
    kickedupdirt = {
      air                = true,
      class              = [[CSimpleParticleSystem]],
      count              = 1,
      ground             = true,
      properties = {
        airdrag            = 0.87,
        alwaysvisible      = true,
        colormap           = [[0.25 0.25 0.25 0.5	0 0 0 0.0]],
        directional        = false,
        emitrot            = 90,
        emitrotspread      = 5,
        emitvector         = [[0, 1, 0]],
        gravity            = [[0, 0.5, 0]],
        numparticles       = 160,
        particlelife       = 2,
        particlelifespread = 30,
        particlesize       = 2,
        particlesizespread = 1,
        particlespeed      = 14,
        particlespeedspread = 6,
        pos                = [[0, 1, 0]],
        sizegrowth         = 0.5,
        sizemod            = 1.0,
        texture            = [[bigexplosmoke]],
      },
    },
    kickedupwater = {
      class              = [[CSimpleParticleSystem]],
      count              = 1,
      water              = true, 
	  underwater         = true,
      properties = {
        airdrag            = 0.87,
        alwaysvisible      = true,
        colormap           = [[0.7 0.7 0.9 0.35	0 0 0 0.0]],
        directional        = false,
        emitrot            = 90,
        emitrotspread      = 5,
        emitvector         = [[0, 1, 0]],
        gravity            = [[0, 0.5, 0]],
        numparticles       = 160,
        particlelife       = 2,
        particlelifespread = 30,
        particlesize       = 2,
        particlesizespread = 1,
        particlespeed      = 14,
        particlespeedspread = 6,
        pos                = [[0, 1, 0]],
        sizegrowth         = 0.5,
        sizemod            = 1.0,
        texture            = [[wake]],
      },
    },
    orangeexplosionspikes = {
      air                = true,
      class              = [[CSimpleParticleSystem]],
      count              = 1,
      ground             = true,
      water              = true, 
	  underwater         = true,
      properties = {
        airdrag            = 0.9,
        alwaysvisible      = true,
        colormap           = [[0.7 0.8 0.9 0.03   0.9 0.5 0.2 0.01]],
        directional        = true,
        emitrot            = 45,
        emitrotspread      = 32,
        emitvector         = [[0, 1, 0]],
        gravity            = [[0, -0.01, 0]],
        numparticles       = 16,
        particlelife       = 10,
        particlelife       = 10,
        particlelifespread = 0,
        particlesize       = 1,
        particlesizespread = 0,
        particlespeed      = 26,
        particlespeedspread = 2,
        pos                = [[0, 2, 0]],
        sizegrowth         = 1,
        sizemod            = 1,
        texture            = [[flashside2]],
        useairlos          = false,
      },
    },
    outerflash = {
      air                = true,
      class              = [[heatcloud]],
      count              = 2,
      ground             = true,
      water              = true, 
	  underwater         = true,
      properties = {
        alwaysvisible      = true,
        heat               = 10,
        heatfalloff        = 1.1,
        maxheat            = 20,
        pos                = [[r-2 r2, 5, r-2 r2]],
        size               = 1,
        sizegrowth         = 40,
        speed              = [[0, 1 0, 0]],
        texture            = [[orangenovaexplo]],
      },
    },
    unitpoofs = {
      air                = true,
      class              = [[CSimpleParticleSystem]],
      count              = 1,
      ground             = true,
      water              = true, 
	  underwater         = true,
      properties = {
        airdrag            = 0.2,
        alwaysvisible      = true,
        colormap           = [[1.0 1.0 1.0 0.04	1.0 0.5 0.0 0.01	0.1 0.1 0.1 0.01]],
        directional        = false,
        emitrot            = 45,
        emitrotspread      = 32,
        emitvector         = [[0, 1, 0]],
        gravity            = [[0, 0.05, 0]],
        numparticles       = 8,
        particlelife       = 5,
        particlelifespread = 16,
        particlesize       = 20,
        particlesizespread = 0,
        particlespeed      = 48,
        particlespeedspread = 1,
        pos                = [[0, 2, 0]],
        sizegrowth         = 0.8,
        sizemod            = 1,
        texture            = [[randomdots]],
        useairlos          = false,
      },
    },
0 x

raaar
Metal Factions Developer
Posts: 848
Joined: 20 Feb 2010, 12:17

Re: Either tell me which table it's in, or remove this warning

Post by raaar »

even without specifying the exact component, it's still useful information.
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6179
Joined: 29 Apr 2005, 01:14

Re: Either tell me which table it's in, or remove this warning

Post by FLOZi »

Hint: CSmokeProjectile
0 x

User avatar
Silentwings
Moderator
Posts: 3646
Joined: 25 Oct 2008, 00:23

Re: Either tell me which table it's in, or remove this warning

Post by Silentwings »

[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge: unknown tag CSmokeProjectile::sizegrowth
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6179
Joined: 29 Apr 2005, 01:14

Re: Either tell me which table it's in, or remove this warning

Post by FLOZi »

I suspect he realises it is sizegrowth that is the problem, hence "which table is it in", as it appears so many times.

Only once outside of a CSimpleParticleSystem, though.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Re: Either tell me which table it's in, or remove this warning

Post by Forboding Angel »

This is with sizegrowth 50
https://i.imgur.com/YyKPJNZ.jpg

In this effect:

Code: Select all

    kickedupdirt = {
      air                = true,
      class              = [[CSimpleParticleSystem]],
      count              = 1,
      ground             = true,
      properties = {
        airdrag            = 0.87,
        alwaysvisible      = true,
        colormap           = [[0.25 0.25 0.25 0.5	0 0 0 0.0]],
        directional        = false,
        emitrot            = 90,
        emitrotspread      = 5,
        emitvector         = [[0, 1, 0]],
        gravity            = [[0, 0.5, 0]],
        numparticles       = 30,
        particlelife       = 2,
        particlelifespread = 30,
        particlesize       = 2,
        particlesizespread = 1,
        particlespeed      = 2,
        particlespeedspread = 6,
        pos                = [[0, 1, 0]],
        sizegrowth         = 0.5,
        sizemod            = 1.0,
        texture            = [[bigexplosmoke]],
      },
    },
Obviously, the above is a section of a ceg, but it's sizegrowth and it's CSimpleParticleSystem, which according to infolog

Code: Select all

[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-small-purple: unknown tag CSmokeProjectile::sizegrowth
Is an unknown tag. So I reiterate the title. Tell me what table you're referencing, or remove this useless warning.
Silentwings wrote:
11 May 2020, 21:02
[f=-000001] Warning: [CCEG::Load] genericbuildingexplosion-huge: unknown tag CSmokeProjectile::sizegrowth
Do you want a cookie? As if I don't know that it is referencing csimpleparticlesystem? That isn't what I asked.
0 x

User avatar
Silentwings
Moderator
Posts: 3646
Joined: 25 Oct 2008, 00:23

Re: Either tell me which table it's in, or remove this warning

Post by Silentwings »

Forboding Angel wrote:
13 May 2020, 04:07
Obviously, the above is a section of a ceg, but it's sizegrowth and it's CSimpleParticleSystem, which according to infolog is an unknown tag.
Silentwings wrote:
11 May 2020, 21:02
Warning: [CCEG::Load] genericbuildingexplosion-huge: unknown tag CSmokeProjectile::sizegrowth
Do you want a cookie? As if I don't know that it is referencing csimpleparticlesystem? That isn't what I asked.
Sadly you don't, because it isn't. It is referencing a CSmokeProjectile.
The wiki can explain the difference to you.

The information tells you precisely where you have put your erroneous ::sizegrowth tag.
It is in the table defining your CSmokeProjectile.

Cookies welcome, no white chocolate please.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14636
Joined: 17 Nov 2005, 02:43

Re: Either tell me which table it's in, or remove this warning

Post by Forboding Angel »

In this effect, there are no tables classed as CSmokeProjectile. Are you telling me that any table without an explicit class set is suddenly CSmokeProjectile? If so, then that's weirdly specific. If anything, the ceg warning should be about a table without a class explicitly defined. If this is indeed the case, then the wiki should probably say something about it.

There is ofc this:

Code: Select all

CStandardGroundFlash

If you name a spawner "groundflash," it will always generate a standard groundflash. 
Which should not be the case as a class should be required to be defined. If this extends to be
CSmokeProjectile

If you name a spawner "smoke," it will always generate a standard smoke.
Then this behavior should be changed in favor of explicit classes. At the very least, it should be documented in the wiki.
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6179
Joined: 29 Apr 2005, 01:14

Re: Either tell me which table it's in, or remove this warning

Post by FLOZi »

Hint #2: heatcloud is a synonym for the smoke class, iirc.

I'll take any white chocolate cookies, especially if they also have raspberry.

edit: Hmm, that ought to be heatcloudprojectile so I guess I'm barking up the wrong melon, too. You are probably right about the smoke section.

Yes, smoke is automagically via basecontent lua

https://github.com/spring/spring/blob/d ... as.lua#L61
0 x

User avatar
Silentwings
Moderator
Posts: 3646
Joined: 25 Oct 2008, 00:23

Re: Either tell me which table it's in, or remove this warning

Post by Silentwings »


Are you telling me that any table without an explicit class set is suddenly CSmokeProjectile?
Ofc not. Only the one that generates smoke, which is cunningly named "smoke".
https://github.com/spring/spring/blob/d ... as.lua#L61
Then this behavior should be changed in favor of explicit classes.
If wanted, and if you/others update all their CEGs to not use the old "name=>class" convention, the overrides in basecontent could be removed.
0 x

Post Reply

Return to “Engine”

cron