View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:52 am



Reply to topic  [ 10 posts ] 
 1.05, my mod's still broke. 
Author Message

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post 1.05, my mod's still broke.
When installing my TC mod to 1.05, it gets through all the RTEs, then crashes when on Metagames.rte.

It's an engine crash, no error numbers, nothing but these:

Image
Image
Image

...etc.

It doesn't even give a consistent debug code, let alone some sort of meaningful log, so I have no idea where to start fixing the mod, unfortunately, or I would have fixed it immediately. It's not affecting non-TC projects, so there's obviously something very particular going on that needs some looking into.

Surely there's an RTE error somewhere or some kind of edge-case problem that can be addressed, but I've spent all this time patiently reporting these very serious, game-crashing bugs with zero tangible support from the devs thus far, and I'd really appreciate it if this issue could be finally brought to Data's attention and addressed :)


Wed Nov 28, 2012 7:34 pm
Profile
User avatar

Joined: Tue Jul 07, 2009 11:44 pm
Posts: 5
Reply with quote
Post Re: 1.05, my mod's still broke.
xenoargh wrote:
When [url=linkremovedincaseitiswarez]installing my TC mod[/url] to 1.05, it gets through all the RTEs, then crashes when on Metagames.rte.

What does that archive contain? Is it files from your mod, or is it an upload of all the .RTEs from an outdated Cortex Command folder?

If you took that archive and extracted it's contents to your Cortex Command folder, it would without a doubt break your game due to it replacing newer CC files with outdated ones. I don't know if that's what you're doing, but your post isn't very clear.

Care to elaborate?

EDIT:

That archive contains a lot of unedited content that ships with (outdated) CC, if it is a mod, it needs a major design overhaul. I'm not even sure you're allowed to redistribute those files like that.


Mon Dec 03, 2012 12:10 am
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: 1.05, my mod's still broke.
It had to be designed that way.

Installation is drag-and-drop over an existing install of CC.

Since it's a TC, and due to CC not explicitly supporting TC mods properly (i.e., there is no valid way to tell it not load the existing factions or any of their dependencies) I had to go around it in a fairly complicated way.

Should the engine work like that? Not if we'd like to see serious gameplay mods that are integrated with the campaign or new campaigns that wipe out the default content. That's what any serious modder's going to want to do, after all :)

But the dependency structure of the game is such that mods aren't allowed to use unitary directory structures very easily for multi-faction mods, aren't allowed to displace or replace the core files without wholesale changes to the core directories (i.e., I can't include a file Foo that replaces file FooBar in the game, explicitly exclude FooBar or anything like that), and generally, that part of the engine needs more serious work, in terms of making it easier for the end-users, just like a lot of the other things related to modding.

Why this situation persists is a bit of a mystery.

Data, hardly anybody bothers playing your game without mods installed, especially if they want a real challenge in the campaign. I built a mod that gave people a 'real game', in the sense that it's actually hard to win the Campaign, playing fair, and I'm getting nothing but crickets here, instead of the kind of support one would expect when one buys your products and invests the kind of time and talent it takes to make stuff like this. What's up with that?


Mon Dec 03, 2012 4:31 pm
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post Re: 1.05, my mod's still broke.
I tried making a stripped version of CC at one point that only included effects and an actor or two. But I found that there are a few things that CC is hardcoded to need. Maybe you are overwritting or removing one of these? Or as the guy above was saying, trying to use outdated vanilla content with the newest release is probably a bad idea. I have no idea how extensive your mod is but, I would probably go about remaking it using the values you've already found.


Mon Dec 03, 2012 5:44 pm
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: 1.05, my mod's still broke.
Is it really asking that much to have somebody with a debug build run it once and tell me where the engine's halting? Because whatever's going on here is not a typical RTE error, which I'd be happy to fix.

The problem here is that I have no idea where the haystack is, let alone the needle.

For example, is it crashing because I added new Metagame locations and something changed in the Metagame location file format or definitions of the deployables? This is the most likely, but if true, it's a serious problem. Adding new maps to Metagame should Just Work, provided they're valid CC maps.

Is it crashing because there are new actors in the base directory, or other content / references are now borked? Of course, if so, there should be a RTE error...

Is it crashing because I've defined Turret and ACrabs for Factions that didn't have them defined in Vanilla? If so, it's one of the deep dependency things that really should be taken out, because you can't make a true TC until you're allowed to get rid of the defaults.

Or is it halting because of something arcane, like a sound file not meeting parameters, expecting File A in Directory B to have a byte-length of C, etc.?

Until I know what to look at, it's a complete waste of time, considering how much got changed. I'd pretty much have to rebuild the mod, one directory / RTE dependency tree at a time.

Which, given that it's a TC, is a pretty major undertaking, vs. somebody with a debug version and symbols built running the mod once, seeing the debugger halt, reading the line number and going, "gee, how funny, it stopped on this line because we're now depending on X file in Y directory", etc.


Mon Dec 03, 2012 8:56 pm
Profile
User avatar

Joined: Tue Jul 07, 2009 11:44 pm
Posts: 5
Reply with quote
Post Re: 1.05, my mod's still broke.
Okay bro, I don't know what you're smoking...

VERY VERY SMALL PARTIAL List of files included in your "mod" that are exactly the same and in the same place as a vanilla CC install:
Quote:
Base.rte
-Activities\BrainVsBrain.lua
-Activities\Prospecting.lua
-Activities\SiteScan.lua
-AllegroConfig.txt
-Deployments.ini
-Icons.ini
-Index.ini
-LoadoutsP1.ini

There are tons more, but after just comparing your Base.rte and the one Activities subfolder, I realized I'd be typing this forum post for the next few hours if I were to continue.

Also, I only bothered mentioning the files that are the same as files in a fresh CC 1.05 install, and didn't even bother mentioning all the outdated VANILLA files that are in there that would replace newer files, therefore breaking the game.

IE, why are you replacing "Cortex Command\Base.rte\Actors\AI\HumanAI.lua" with one from an earlier version?

CC 1.05 HumanAI.lua:
Code:
dofile("Base.rte/Constants.lua")
require("Actors/AI/NativeHumanAI")   --dofile("Base.rte/Actors/AI/NativeHumanAI.lua")

function Create(self)
   self.AI = NativeHumanAI:Create(self)
end

function UpdateAI(self)
   self.AI:Update(self)
end


Your "Mod's" HumanAI.lua that replaces it:

That's funny, your mod's copy of HumanAI.lua looks a lot like the old way CC used to handle Human AI, before all that information was moved into NativeHumanAI.lua.

Why are you doing these things? How in the hell can you expect your total conversion mod from an earlier version to work on the newest version if there have been massive changes to how the game works? You can't expect the devs to cater to insane requests to have the newest version of CC codebase to be completely backwards compatible with the way thing used to work. You should also stop replacing up to date files with unedited, outdated files. You need to take some credit for your mess and drop the story about how it's not your fault.

So, to recap, you are:
Distributing vanilla CC files that are unedited or outdated, that will replace the user's corresponding vanilla updated files.
saying this is Data's fault it's not working because he hasn't opened enough of CC's code/engine to the scripting?
Saying that he should make the errors less ambiguous to cater to people who expect miracles?

If you can't find the haystack or the needle, maybe you should find a different barn game to play.


Tue Dec 04, 2012 12:31 am
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: 1.05, my mod's still broke.
Quote:
VERY VERY SMALL PARTIAL List of files included in your "mod" that are exactly the same and in the same place as a vanilla CC install:
If they're exactly the same, they cannot cause an issue. What's your point; nobody said that there was a requirement that I not needlessly duplicate data ;)

Quote:
That's funny, your mod's copy of HumanAI.lua looks a lot like the old way CC used to handle Human AI, before all that information was moved into NativeHumanAI.lua.
It is, but only sort of.

If you know your Lua you can compare with R27 and see where it's radically different. They more-or-less copied my approach (i.e., developing AI via dependencies so that we can keep physical sim thread-safe from AI), not the other way 'round, because it just made sense.

If that were the only issue here, I'd just do some Lua hacking and be done already, but I have a much bigger problem; the game won't start nor will it give me a RTE error in the log.

Anyhow, I'm really sorry that you feel like you need to get on a soapbox and be a jerk, but frankly you have very little understanding of the situation here.

The engine SHOULD be giving me a meaningful error message if it's halting due to RTE dependencies not being present. It SHOULD give me a meaningful error message if a file it needs can't be found. It's not doing that.

So either the problem's in a dependency that's not called via RTE, or there's some edge-case problem where it's looking for a value in a RTE but it's not being called until after the main sequence and therefore isn't caught by the loading-sequence code. Either way, it's a very serious engine-side issue; if we write a mod and it crashes this way, unless we've just changed something, we don't even know where to start.

So we're talking about rebuilding a project that took a couple of months, starting with core dependencies and working upwards. Meanwhile, if the engine could merely tell me what it halted on, I'd be able to work my way forward and get it done inside of a week of my unpaid, spare-time labor.

So, Mr. 3-post lurker, kindly refrain from posting here further until you've taken a big, deep breath and have walked a few miles in my shoes.


Tue Dec 04, 2012 4:08 pm
Profile
User avatar

Joined: Tue Jul 07, 2009 11:44 pm
Posts: 5
Reply with quote
Post Re: 1.05, my mod's still broke.
I apologize for being a jerk. My rudeness was an inappropriate symptom of my astonishment, and it was wrong.

What I am suggesting is that instead of trying to fix CC 1.05 to work with your mod, you should try to make your mod work with CC 1.05. I understand that it will be difficult, seeing as how the nature of a TC mod requires the editing of core files, but I believe that is the fundemental flaw causing your crash. I realize that it is justifiably useful for the errors to be more helpful, but I still believe that you are going about fixing your mod in the wrong way.

I was pointing out the duplicate files to show you how messy your mod is internally, and to hopefully convince you to look at your mod as being the problem, rather than CC. I am sorry for going about it in the wrong way, but your attitude flabbergasted me. Even the thread title lead me to believe that you are placing blame on the game update for breaking your mod (Which it very well did, but it is the mod makers job to get it working again). You claim to not know where to look to start fixing your mod. I'm trying to show you. Even though it will be difficult going through and thoroughly cleaning up your mod, I believe that it is a far better approach to getting your mod to work with the current version, rather than dropping your mod on a fresh install and then trying to fix all the errors. If your mod was not a total conversion, I would totally understand the latter method.

I am not disagreeing with your request to give modders more freedom with changing the core game. I'm also not disagreeing with your assertion that because of the lack of this freedom, you've had to jump through hoops and have had a much harder time making your mod compatible with newer iterations of the game. All that is understandable, but I believe it is a separate issue.

I hope you don't mind that I've posted in this thread again. I've taken your advice and have taken my deep breath, but I'm afraid I'm too tired to walk that far. ;-)


Tue Dec 04, 2012 5:59 pm
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: 1.05, my mod's still broke.
Fair enough; I wasn't in the best of moods when I responded and frankly I should have just held my tongue, but no, I had to get snippy with a total stranger on the Internet :roll:

Anyhow, I'm considering rebuilding from square one, eliminating the problems. Perhaps I'll even figure out a way past the major issues (i.e., shipping new Metagame arenas and core AI rewrites and certain other things) without having to touch the base directory, as that's probably where I got into serious trouble.

It's just a long, long walk up the mountain to get back where I started, is all; it's pretty frustrating when you can't just work through the bugs but have to disassemble a big project and check each piece by hand.


Tue Dec 04, 2012 11:43 pm
Profile

Joined: Wed May 05, 2010 3:59 pm
Posts: 9
Reply with quote
Post Re: 1.05, my mod's still broke.
It'll be worth your while getting a program to show you all the differences: I suggest WinMerge.
Image


Fri Jan 18, 2013 6:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.113s | 14 Queries | GZIP : Off ]