Duke4.net Forums: Noobie coding question - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Noobie coding question

User is offline   MC84 

#1

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?
0

User is offline   Daedolon 

  • Ancient Blood God

#2

You need to have a space after //
1

User is offline   MC84 

#3

View PostDaedolon, 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...
0

User is offline   Jblade 

#4

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.
0

User is offline   Danukem 

  • Duke Plus Developer

#5

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.
0

User is offline   Jblade 

#6

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.
0

User is offline   MC84 

#7

View PostTrooper 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.
0

User is offline   MC84 

#8

View PostJblade, 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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options