Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Some modding trouble.....  (Read 1010 times)

1sauber1

  • Bay Watcher
    • View Profile
Some modding trouble.....
« on: June 18, 2008, 08:29:06 pm »

Alright, I got bored and decided to try my hand at a "Stakelauncher" with multiple ammotypes.
It says "STAKE", the ammo the launcher uses, isn't defined anywhere.
Here are both files.
(Filename of this is item_addammo)
Code: [Select]
[ITEM_AMMO:ITEM_AMMO_STAKE]
[NAME:stake:stakes]
[CLASS:STAKE]
[DAMAGE:100:PIERCE]


[ITEM_AMMO:ITEM_AMMO_STAKE]
[NAME:flaming stake:flaming stakes]
[CLASS:STAKE]
[DAMAGE:100:BURN]


[ITEM_AMMO:ITEM_AMMO_STAKE]
[NAME:Barbed stake:Barbed stakes]
[CLASS:STAKE]
[DAMAGE:100:GORE]
(Filename of this is item_addweapon)
Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_STAKELAUNCHER]
[NAME:stakelauncher:stakelaunchers]
[DAMAGE:70:BLUDGEON]
[WEIGHT:50]
[SKILL:HAMMER]
[RANGED:CROSSBOW:STAKE]
[TWO_HANDED:0]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]
Any help is very appreciated.
Thanks for your time, Sauber.
(IRCians know me as Smilodon)
Logged

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: Some modding trouble.....
« Reply #1 on: June 18, 2008, 08:46:23 pm »

Well, try giving the ammo different tags, see if that helps.  I don't think the game responds all that well to multiple entries.

Just add a number at the end, so instead of
[ITEM_AMMO:ITEM_AMMO_STAKE]
[ITEM_AMMO:ITEM_AMMO_STAKE]
[ITEM_AMMO:ITEM_AMMO_STAKE]

It would be
[ITEM_AMMO:ITEM_AMMO_STAKE1]
[ITEM_AMMO:ITEM_AMMO_STAKE2]
[ITEM_AMMO:ITEM_AMMO_STAKE3]

The13thRonin

  • Bay Watcher
  • Profession: Handsome Rogue
    • View Profile
Re: Some modding trouble.....
« Reply #2 on: June 18, 2008, 09:48:27 pm »

Well, try giving the ammo different tags, see if that helps.  I don't think the game responds all that well to multiple entries.

Just add a number at the end, so instead of
[ITEM_AMMO:ITEM_AMMO_STAKE]
[ITEM_AMMO:ITEM_AMMO_STAKE]
[ITEM_AMMO:ITEM_AMMO_STAKE]

It would be
[ITEM_AMMO:ITEM_AMMO_STAKE1]
[ITEM_AMMO:ITEM_AMMO_STAKE2]
[ITEM_AMMO:ITEM_AMMO_STAKE3]

Agreed.
Logged
I'm Digging Deeper... AGAIN... You Should Too!

Dig Deeper DIAMOND - 750+ items of new content including; new plants, new creatures, new metals, new woods, new gems, new stones, new crafts and much, much more.

Wiles

  • Bay Watcher
    • View Profile
Re: Some modding trouble.....
« Reply #3 on: June 18, 2008, 09:49:19 pm »

EDIT: I stand corrected.  :)
« Last Edit: June 18, 2008, 10:11:18 pm by Wiles »
Logged

ricemastah

  • Bay Watcher
    • View Profile
Re: Some modding trouble.....
« Reply #4 on: June 18, 2008, 09:55:47 pm »

Actually that's not true Wiles, but if you do want to make your ammo in fortress mode then you need to define the ammo in the entity raws, otherwise they won't be able to make it.
Code: [Select]
[WEAPON:ITEM_WEAPON_STAKELAUNCHER]
[AMMO:ITEM_AMMO_STAKE1]
[AMMO:ITEM_AMMO_STAKE2]
[AMMO:ITEM_AMMO_STAKE3]

etc. Remember put that in the entity_default.txt file in the civs you want to use this item.
« Last Edit: June 18, 2008, 10:01:00 pm by ricemastah »
Logged

1sauber1

  • Bay Watcher
    • View Profile
Re: Some modding trouble.....
« Reply #5 on: June 18, 2008, 10:28:24 pm »


That is the problem.
I don't know what the hell is wrong with it though, and yes, this is indeed what happened before.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Some modding trouble.....
« Reply #6 on: June 18, 2008, 10:31:04 pm »

Maybe try cropping it down to just the error.  Due to the fact that you have your entire desktop, the error is illegible.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

umiman

  • Bay Watcher
  • Voice Fetishist
    • View Profile
Re: Some modding trouble.....
« Reply #7 on: June 18, 2008, 10:32:54 pm »

Missing item definition: ITEM_AMMO_STAKES

Fleeb

  • Bay Watcher
  • The Fleebiest
    • View Profile
Re: Some modding trouble.....
« Reply #8 on: June 19, 2008, 06:47:04 am »

You do have

Code: [Select]
item_addammo

[OBJECT:ITEM]

at the very top of you item_addammo.txt file right?
Logged
"If you push something hard enough, it will fall over" -Fudds First Law of Opposition
"If it goes in, it must come out" -Teslicles Deviant to Fudds Law