Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help with a weapon overwrite.  (Read 730 times)

NewsMuffin

  • Bay Watcher
    • View Profile
Help with a weapon overwrite.
« on: July 03, 2010, 12:30:38 am »

I made crossbows into rifles, and bows into pistols for a succession game, but the rifles won't show up anywhere when I try to make them. I can make their ammo, but I can't make the weapons themselves. Help?
Logged

Malecus

  • Bay Watcher
    • View Profile
Re: Help with a weapon overwrite.
« Reply #1 on: July 03, 2010, 12:38:47 am »

If it was a simple name swap, did you make sure to similarly change the names of the weapons in the entity_default.txt file in the raw/objects folder?

Is there anything new popping up in the errorlog file?
Logged

NewsMuffin

  • Bay Watcher
    • View Profile
Re: Help with a weapon overwrite.
« Reply #2 on: July 03, 2010, 12:54:42 am »

*** Error(s) finalizing the entity MOUNTAIN
Unrecognized entity weapon token: ITEM_WEAPON_BOW
Unrecognized entity weapon token: ITEM_WEAPON_CROSSBOW

is what I found in the error log. Probably what you said. Checking.

EDIT: No, it's in the entity_default.txt.
I didn't change the name of the (I want to say) instance name, just the name it's referred to in the game.

[ITEM_WEAPON:BOW]
[NAME:pistol:pistols]

Like that.
« Last Edit: July 03, 2010, 12:58:33 am by NewsMuffin »
Logged

Emong

  • Bay Watcher
    • View Profile
Re: Help with a weapon overwrite.
« Reply #3 on: July 03, 2010, 02:10:29 am »

Try changing it to [ITEM_WEAPON:ITEM_WEAPON_BOW]
Logged

NewsMuffin

  • Bay Watcher
    • View Profile
Re: Help with a weapon overwrite.
« Reply #4 on: July 03, 2010, 02:19:13 am »

Alright. If this works, I'm retarded. Thank you.
It worked. I'm retarded. Thank you.
« Last Edit: July 03, 2010, 02:33:21 am by NewsMuffin »
Logged