Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: New to modding  (Read 717 times)

varkarrus

  • Bay Watcher
  • Insanity and a knife go well together.
    • View Profile
New to modding
« on: November 24, 2008, 04:57:37 pm »

Sorry. I'm new to modding, but I want to know what's wrong with the code for the Collosal Hamster, which will become a megabeast.

[CREATURE: COLLOSAL_HAMSTER]
    [Name: Collosal Hamster: Collosal Hamsters: Collosal Hamster]
    [TILE: 'H'][COLOR:OCHRE:0:0]
    [MODVALUE:8]
    [LARGE_ROAMING][DIFFICULTY:5]
    [CHILD:4][CHILDNAME:Semi-collosal Hamster:Semi-collosal Hamsters]
    [BABY:1]
    [BIOME:ALL_MAIN]
    [BONECARN]
    [CARNIVORE]
    [PETVALUE:1550]
    [trAINABLE]
    [liKES_FIGHT]
    [SIZE:20]
    [MAXAGE:110:140]
    [liTTERSIZE:3:5]
    [POPULATION_NUMBER:40:90]
    [ATTACK:MAIN:BYTYPE:MOUTH:gorge:gorges;3:7:GORE][ATTACKFLAG_CANLATCH]
    [LAYERING:60]
    [HOMEOTHERM:10067]
    [STANDARD_FLESH]
    [FAT:40]
    [MOUNT]
    [NOSTUN]
    [NOPAIN]
    [NOFEAR]
    [BODY:QUADRUPED:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
    [NO_WINTER]
    [PREFSTRING:cuteness]
    [PREFSTRING:cuddly wuddlyness]
    [PREFSTRING:viscosity]
    [BUILDINGDESTROYER]
    [CLUSTER_NUMBER:1:2]
    [GNAWER]
    [PET]
    [BODYGLOSS:PAW]


Also, I want to know how to make it guarantee to pop up very early in the game for testing purposes, and if there is any easier way of updating it other than remaking the region each time. If there isn't, can Toady One put in a "re-import object data" button?
Logged
Dip Stick! The newest candy! Just dip it, then lick it!
Or try FUBAR! The best chocolate bar ever!
And you can't eat them, either, sadly. Even though it'd make sieges so much more fun; dwarves lining the walls, drooling and carrying sharp knives and forks, ready for the upcoming meals.

Rysith

  • Bay Watcher
    • View Profile
Re: New to modding
« Reply #1 on: November 24, 2008, 05:35:14 pm »

Your color tag is wrong. Check the color entry on the wiki, but you need [COLOR:{0-7}:{0-7}:{0-7}]. The names are only for dyes.

To make it show up early, you can give it the [COMMON_DOMESTIC] tag and you'll be able to bring it with you at embark.
Logged
Lanternwebs: a community fort
Try my orc mod!
The OP deserves the violent Dwarven equivalent of the Nobel Peace Prize.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: New to modding
« Reply #2 on: November 24, 2008, 05:37:16 pm »

I think ANY_LAND is better than ALL_MAIN (it's not amphibious and it won't live in oceans).
I hope all those spaces (like in NAME before the name) are just forum formatting issues, if not, remove them, Also all the tokens should be uppercase (NAME not Name). You may want to remove uppercase letters from the creature's name since the game can decide it itself.
MAXAGE will probably make it extinct like a megabeast.
Also I'm not sure about CLUSTER_SIZE and DIFFICULTY on megabeast, they are placed with some special algorythm and not like other critters.

Are there any related errors in your errorlog.txt?

P.S. There can't be "import object" button since it's not an object but a creature and it should actually live somewhere in the history.

P.P.S. I'm against the idea of domestic megabeasts :).
« Last Edit: November 24, 2008, 05:39:59 pm by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

varkarrus

  • Bay Watcher
  • Insanity and a knife go well together.
    • View Profile
Re: New to modding
« Reply #3 on: November 24, 2008, 05:51:07 pm »

Well, I fixed a lot of the stuff. Yes, there were spaces in the name. I fixed that, as well as the color. If your wondering about the domesticness, it is a megabeast, but if you can catch it, you can domesticate it. When I'm finished, it will be a not-that powerful megabeast, but it can be bred. I will test it to see if it works. It still kinda sucks that you have to remake the region each time. By the way, how do you delete regions. It's getting cluttered.

EDIT: IT WORKED!!! WOOH! Also, my hunter got "struck down", then had his bones devoured. YIPPEE!

EDIT2: Modified code. Use this for a challenge in any temperate forest, but make sure you fix the case values. Some of them messed up for no reason.:

Spoiler (click to show/hide)
« Last Edit: November 24, 2008, 06:07:57 pm by varkarrus »
Logged
Dip Stick! The newest candy! Just dip it, then lick it!
Or try FUBAR! The best chocolate bar ever!
And you can't eat them, either, sadly. Even though it'd make sieges so much more fun; dwarves lining the walls, drooling and carrying sharp knives and forks, ready for the upcoming meals.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: New to modding
« Reply #4 on: November 24, 2008, 06:09:03 pm »

The reason is the forum weirdness. Use [ code ] tags.

Regions are in your SAVE folder.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

varkarrus

  • Bay Watcher
  • Insanity and a knife go well together.
    • View Profile
Re: New to modding
« Reply #5 on: November 24, 2008, 08:11:14 pm »

Thanks. Everythings fine with the Collosal Hamster now, except for it being too common still. But I can do that myself.
Logged
Dip Stick! The newest candy! Just dip it, then lick it!
Or try FUBAR! The best chocolate bar ever!
And you can't eat them, either, sadly. Even though it'd make sieges so much more fun; dwarves lining the walls, drooling and carrying sharp knives and forks, ready for the upcoming meals.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: New to modding
« Reply #6 on: November 24, 2008, 11:06:50 pm »

Something that would make it nicer, just as an aesthetic fix, would be to move all of those [NO_XXX] tags onto the same line and compress the creature file slightly.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Cavalcadeofcats

  • Bay Watcher
    • View Profile
Re: New to modding
« Reply #7 on: November 24, 2008, 11:46:36 pm »

Would also be nice if you spelled colossal correctly. But that's nit-picking.
Logged