Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Modding In Words?  (Read 2075 times)

Pathos

  • Guest
Modding In Words?
« on: November 18, 2007, 10:54:00 am »

Can't work out how to actually do it. What do I have to change in order for it to work?

There are a LOT of words missing, hall, dale, shire, frost... We needs them!

List of missing words:-

    Pillar
    Citadel
    Spire
    Shrine
    Hall
    Frost
    Dale
    Shire
    Wolf
    Fence
    Malevolent
    Twain
    Abyss
    Stygian
    Under
    Air
    Splash
    Fade
    Shade
    Freedom
    Honour/Honor
    Hold
    Clan
    Scald
    Fain
    Baron
    Fail
    Succeed
    Succeeding
    Losing
    Failing
    Metallic
    Valley
    Sanctum
    Monastery
    Labyrinth
    Maze
    Peak

[ November 18, 2007: Message edited by: Pathos ]

[ November 18, 2007: Message edited by: Pathos ]

Logged

Red Jackard

  • Bay Watcher
    • View Profile
    • Wiki Page
Re: Modding In Words?
« Reply #1 on: November 18, 2007, 10:59:00 am »

Well first, let's gather a list of what words we know are missing that we would like to add.

    Pillar
    Citadel
    Spire
    Shrine
    Hall
    Frost
    Dale
    Shire
    Wolf
    Valley
    Sanctum
    Monastery
    Labyrinth
    Maze
    Peak
    Forge
    City
    Hold
    Oasis
    Burrow
    Den
    Haven
    Smoky
    Under
    Cliff
    Barrel
    End
    Dam

[ November 18, 2007: Message edited by: Red Jackard ]

Logged
My dwarves are not your dwarves.

Metal Chao

  • Bay Watcher
    • View Profile
Re: Modding In Words?
« Reply #2 on: November 18, 2007, 11:12:00 am »

Raw/objects/language_words
Raw/objects/language_(Insert Race here)

Language_words:

[WORD :(WORD)]
   [NOUN :(singular) :(plural)]
      [FRONT_COMPOUND_NOUN_SING]     0
      [REAR_COMPOUND_NOUN_SING]     0
      [THE_NOUN_SING]     0
      [REAR_COMPOUND_NOUN_PLUR]     0
      [OF_NOUN_PLUR]     0

0- Categories it will be in. Delete as appropriate.

Language_(race):

   [T_WORD :(WORD) :(Translation)]


Key: Replace things in ( ) with whatever you want. If the item inside is written in allcaps (eg, (WORD) ) then what you write must also be in allcaps.

[ November 18, 2007: Message edited by: Metal Chao ]

Logged

Red Jackard

  • Bay Watcher
    • View Profile
    • Wiki Page
Re: Modding In Words?
« Reply #3 on: November 18, 2007, 07:50:00 pm »

Oops, forgot one:

    Grotto
Logged
My dwarves are not your dwarves.

Pathos

  • Guest
Re: Modding In Words?
« Reply #4 on: November 19, 2007, 05:43:00 am »

Stick these in the language_words.txt:-

(NOTE:- For now it's only nouns. Because I really can't be arsed. =p)

 

quote:
[WORD:CITADEL]
   [NOUN:citadel:citadels]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:SPIRE]
   [NOUN:spire:spires]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:SHRINE]
   [NOUN:shrine:shrines]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:HALL]
   [NOUN:hall:halls]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:SHIRE]
   [NOUN:shire:shires]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:WOLF]
   [NOUN:wolf:wolves]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:FROST]
   [NOUN:frost:frosts]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:FENCE]
   [NOUN:fence:fences]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:ABYSS]
   [NOUN:abyss:abysses]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:AIR]
   [NOUN:air:air]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:SHADE]
   [NOUN:shade:shade]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:HOLD]
   [NOUN:hold:holds]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:CLAN]
   [NOUN:clan:clans]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:BARON]
   [NOUN:baron:barons]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:VALLEY]
   [NOUN:valley:valleys]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:SANCTUM]
   [NOUN:sanctum:sanctums]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:MONASTERY]
   [NOUN:monastery:monasteries]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:MAZE]
   [NOUN:maze:mazes]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:LABYRINTH]
   [NOUN:labyrinth:labyrinths]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:PEAK]
   [NOUN:peak:peaks]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:FORGE]
   [NOUN:forge:forges]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:CITY]
   [NOUN:city:cities]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:OASIS]
   [NOUN:oasis:oasii]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:BURROW]
   [NOUN:burrow:burrows]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:DEN]
   [NOUN:den:dens]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:HAVEN]
   [NOUN:haven:havens]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:CLIFF]
   [NOUN:cliff:cliffs]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:BARREL]
   [NOUN:barrel:barrels]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:DAM]
   [NOUN:dam:dams]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:GROTTO]
   [NOUN:grotto:grottos]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:PILE]
   [NOUN:pile:piles]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]

[WORD:PILLAR]
   [NOUN:pillar:pillars]
      [FRONT_COMPOUND_NOUN_SING]
      [REAR_COMPOUND_NOUN_SING]
      [THE_NOUN_SING]
      [REAR_COMPOUND_NOUN_PLUR]
      [OF_NOUN_PLUR]


And these in the language.txt that you want them to be for:-

 

quote:
   [T_WORD:PILLAR:ilp]
   [T_WORD:CITADEL:katet]
   [T_WORD:SPIRE:kut]
   [T_WORD:SHRINE:katat]
   [T_WORD:HALL:hol]
   [T_WORD:FROST:beh]
   [T_WORD:DALE:ras]
   [T_WORD:SHIRE:mar]
   [T_WORD:WOLF:teth]
   [T_WORD:FENCE:nev]
   [T_WORD:ABYSS:arine]
   [T_WORD:AIR:ovuh]
   [T_WORD:SHADE:redo]
   [T_WORD:HOLD:ran]
   [T_WORD:CLAN:tel]
   [T_WORD:BARON:vanni]
   [T_WORD:VALLEY:haluu]
   [T_WORD:SANCTUM:dae]
   [T_WORD:MONASTERY:dra]
   [T_WORD:LABYRINTH:naif]
   [T_WORD:MAZE:ban]
   [T_WORD:PEAK:upp]
   [T_WORD:FORGE:fir]
   [T_WORD:CITY:frey]
   [T_WORD:OASIS:ja]
   [T_WORD:BURROW:indo]
   [T_WORD:DEN:koli]
   [T_WORD:HAVEN:halla]
   [T_WORD:CLIFF:val]
   [T_WORD:BARREL:brun]
   [T_WORD:DAM:modan]
   [T_WORD:GROTTO:loch]
   [T_WORD:PILE:pilp]

[ November 19, 2007: Message edited by: Pathos ]

[ November 19, 2007: Message edited by: Pathos ]

Logged

Earthquake Damage

  • Bay Watcher
    • View Profile
Re: Modding In Words?
« Reply #5 on: November 19, 2007, 02:50:00 pm »

Also missing:  Barter and Town.
Logged

Sparksol

  • Bay Watcher
    • View Profile
Re: Modding In Words?
« Reply #6 on: November 19, 2007, 03:45:00 pm »

Glass appears to be missing, too.
Logged
Religion, over time, tends to diverge. Science tends to converge.
Funny thing about magic, it doesn't consistently go either way.

Bingbing

  • Bay Watcher
    • View Profile
Re: Modding In Words?
« Reply #7 on: November 19, 2007, 07:11:00 pm »

Don't forget Boat!

(wouldn't bother, but it's a part of Boatmurdered.)

Logged
Beware. Not of the E, or of the U, or even of the &, @, and b. Beware the #.<BR>(Translation:) Beware. Not of the elephants, or of the unicorns, or even the demons, carp, and badgers. Beware the husks, for they are relentless, corrupting, and unstoppable. Only the might of hell itself can even keep it in check; and only for a small period of time. If one sees such a being; run away, unless you like the idea of joining their ranks.

Earthquake Damage

  • Bay Watcher
    • View Profile
Re: Modding In Words?
« Reply #8 on: November 20, 2007, 12:51:00 am »

Umm...  Boat's already in there.  It might not exist in the right part of speech for whatever you want to do, though.
Logged

Red Jackard

  • Bay Watcher
    • View Profile
    • Wiki Page
Re: Modding In Words?
« Reply #9 on: December 10, 2007, 02:03:00 pm »

I'm working on a language mod... got the first version up. Also still need to add human, elf, and gobbo translations for the new words.

http://www.dwarffortresswiki.net/index.php/User:Jackard

Changes:
   

  • Removes accented letters from translations, to aid with custom tilesets.
       
  • Alphabetizes the entire list of words.
       
  • Adds several dozen new words, complete with translations and symbolism:

    Abyss Abyssal Air Baron(s) Barrel(s) Benevolent Benevolence Burrow(s) Citadel(s) City Cities Clan(s) Cliff(s) Dale(s) Dam Den(s) Depths End Failing Forge Frost Frosty Greater Hall(s) Haven(s) Hold(s) Honor Honorable Horde(s) Host(s) Isle Labyrinth Labyrinthian Malevolent Malevolence Maze(s) Metallic Mire Monastery Monastic Oasis Peak(s) Pillar(s) Sanctum Shade(s) Shady Shire Shrine(s) Smoky Spire(s) Stygian Under Vale Valley Wolf

    [ December 10, 2007: Message edited by: Red Jackard ]

  • Logged
    My dwarves are not your dwarves.

    Red Jackard

    • Bay Watcher
      • View Profile
      • Wiki Page
    Re: Modding In Words?
    « Reply #10 on: December 11, 2007, 10:36:00 am »

    Second version is up, everything is complete.

    I do need some help, though... for some reason the following words do not display properly: Air, Forge, Mire, Oasis, Sanctum, Shire, Valley.

    It probably has something to do with language_words.txt, but everything seems alright when I check it.

    Logged
    My dwarves are not your dwarves.

    Mike Mayday

    • Bay Watcher
    • gfx whr
      • View Profile
      • Goblinart
    Re: Modding In Words?
    « Reply #11 on: December 11, 2007, 12:06:00 pm »

    I would LOVE to have a mod that just removes the diacritical signs from the alphabets, replacing them with normal letters.
    I tried editing the files, but none of my text editors seems capable of displaying/saving them properly.
    Logged
    <3

    Red Jackard

    • Bay Watcher
      • View Profile
      • Wiki Page
    Re: Modding In Words?
    « Reply #12 on: December 11, 2007, 11:34:00 pm »

    Oh I've got ones of those too - figured someone might ask for it.

     :)

    Logged
    My dwarves are not your dwarves.

    sphr

    • Bay Watcher
      • View Profile
    Re: Modding In Words?
    « Reply #13 on: December 11, 2007, 11:54:00 pm »

    Just a thought.  won't changing the language file potentially mess up any existing save's language (e.g. in last name).

    I was under the impression that the game objects indexes into the language file.  If the index/order of the words changed, the referenced strings will change too.  Prob won't crash or anything unless you start removing so many words that the game object references to a non existent element.  Of course, if we preserve the existing language data and just add to the back, old save games should stay unaffected.

    If anybody knows more details, please enlighten me.  I'm particularly interested in the run-time language structure in order to decode text properly from their codes.

    Red Jackard

    • Bay Watcher
      • View Profile
      • Wiki Page
    Re: Modding In Words?
    « Reply #14 on: December 12, 2007, 05:18:00 am »

    quote:
    Originally posted by sphr:
    <STRONG>I was under the impression that the game objects indexes into the language file.  If the index/order of the words changed, the referenced strings will change too.  Prob won't crash or anything unless you start removing so many words that the game object references to a non existent element.  Of course, if we preserve the existing language data and just add to the back, old save games should stay unaffected.</STRONG>
    That is possible - this was mainly intended for creating worlds. I have removed none of the old words, but the alphabetizing would have done something similar.

    The noaccent file should be perfectly safe.

    Also, I hate to get rid of Forge and Mire, but unless anyone knows what's going on with the blank words looks like I'll have to.

    [ December 12, 2007: Message edited by: Red Jackard ]

    Logged
    My dwarves are not your dwarves.
    Pages: [1] 2