I've got a really basic problem that I can't seem to figure out. Basically I've been adding my own custom artwork to the AMC TC GRP file. Certain tiles are assigned special values; for instance in TILES017.art tilenum 4361 is defined as "DUCK" (this is one of the ducks from the atomic edition babeland level).
Now I've gone into the AMCDEFS file and have added // in front of the line that defines the DUCK object;
define DUCK 4361
becomes
//define DUCK 4361
However I now get an error message that "Error(s) found in game.com. Do you want to use the internal defaults?"
So obviously this DUCK object is referenced elsewhere in a code file. However I've searched through every file in the /CODE folder and searched for "DUCK" or the tilenum "4361" and can't find any reference to it. I'm clearly looking in the wrong place right?
Page 1 of 1
Noobie coding question
#1 Posted 20 January 2018 - 03:45 PM
#3 Posted 21 January 2018 - 12:56 PM
Daedolon, on 21 January 2018 - 12:59 AM, said:
You need to have a space after //
I went and added a space like you said, however I still get the same error message. It's strange because the loader states that the error is found in AMC_OBJECTS.CON, but when I open up this file I find no reference to the DUCK object...
#4 Posted 21 January 2018 - 11:57 PM
The loader should tell you where the line of the error is; maybe post your eduke32.log file here so I can see the error message it's given.
#5 Posted 22 January 2018 - 02:45 AM
If you are a noobie coder, then why are you trying to comment out tiles that have hardcoded shit on them? I can't think of a scenario in which there is any real benefit to doing that.
#6 Posted 22 January 2018 - 02:59 AM
I didn't know DUCK was hard-coded, although I've never looked for it in the con files so I can hardly blame him for trying it. You may have to resort to moving the tile around somewhere else rather than messing about with its code.
#7 Posted 22 January 2018 - 03:56 AM
Trooper Dan, on 22 January 2018 - 02:45 AM, said:
If you are a noobie coder, then why are you trying to comment out tiles that have hardcoded shit on them? I can't think of a scenario in which there is any real benefit to doing that.
Well to be honest I probably haven't fully thought it through; my main reason for doing this is because I am creating a lot of custom artwork for my mod, and I suppose the pedantic/perfectionist in me wants to fill each space with a tile that I'll actually use, as opposed to having all of these crappy low res tiles that I'm never going to use littered throughout my custom artwork.
But if it's going to create big headaches later on then I can let it go.
#8 Posted 22 January 2018 - 04:04 AM
Jblade, on 22 January 2018 - 02:59 AM, said:
I didn't know DUCK was hard-coded, although I've never looked for it in the con files so I can hardly blame him for trying it. You may have to resort to moving the tile around somewhere else rather than messing about with its code.
Thanks mate; yes I think I didn't understand the difference between modified .CON files and core Build code. If what I'm trying to do involves editing the core/source code then I can understand why it would be problematic.
Share this topic:
Page 1 of 1