Major Bug- Inheritence!

Major Bug- Inheritence!

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
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Major Bug- Inheritence!

Post by Argh »

Um, I've just discovered that a Mutator-type game, that calls another game's content as a dependency, cannot load the following files properly:

1. LuaCOB is not being inherited. The COBs call the function, but Spring reports that the function doesn't exist. Major bummer there, if we're going to get portability of my new stuff working for most people right away. I have not tested LuaRules / LuaUI extensively enough to know whether they're borked, too. This is a major problem, I was wanting games like PURE to inherit my new world-builder code- right now, I've been working on the inverse, and have found that LuaCOB does not inherit properly. I'm scared to test the inverse, now :P

If somebody could look into this, it'd make this a lot less of a custom-hack sort of thing...

2. Of all things, Resources.tdf does not get inherited. Kind've vital, if a mutator is going to work with a custom set of bitmaps. Strange that nobody caught this earlier.

Everything else seems to be working- sound files, S3Os, etc. Just these two things.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Major Bug- Inheritence!

Post by Argh »

I have tested with the current build, after porting my LuaCOB over to LuaRules, and it seems that LuaRules are still not being run from the game content that's included. I will just put out my demo for the AI people to see, as-is for now.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Major Bug- Inheritence!

Post by zwzsg »

In Spring76b1, LuaCob, LuaRules, and everything else LUA, is inherited. Oh and so is the resources.tdf. This is easily proven, and I just retested it myself, by playing Kernel Panic Eviless, and .cheat -summoning some hacker units.

In SpringSVN, well, by now you've seen this but I'll still link to it for reference.


However, something I noticed, is that, when busy modding (more precisely when busy changing the modinfo.tdf), often the mutator fails at loading stuff from the base mod if I don't delete the file ArchiveCacheV6.txt before running Spring.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Major Bug- Inheritence!

Post by Argh »

Hmm, I haven't had the same results. I'll check KP, maybe I'm just doing something wrong, I am not used to building "mutators".
Post Reply

Return to “Engine”