Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

How many want to keep this up in the next release?

Me
- 16 (22.9%)
Me!
- 54 (77.1%)

Total Members Voted: 69


Pages: 1 ... 164 165 [166] 167 168 ... 261

Author Topic: DF from scratch: The entirely player-made universe succession.  (Read 523061 times)

StLeibowitz

  • Bay Watcher
  • [NOT_CENTAUR]
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2475 on: September 27, 2013, 04:57:26 pm »

I was considering giving the military professionals of the Formics names in their own language - mainly for spearmen and swordsmen, as those are their primary weapons - to maybe reflect greater cultural importance placed on them as a result of the castes, but I also think along the lines of Hugo. Sentient ants are not going to call themselves sentient ants, they are going to call themselves something along the lines of "people", or "peoplekind", or similar. Honestly, Dwarves having separate profession names in vanilla struck me as slightly odd in the first place, so I'm in no hurry to change Formics to match that scheme :)
Logged
Generally, when one is conducting an experiment, it is worth noting that the observers went insane, killed each other, and then rose from the dead.
It's like DF inhaled a peanut.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2476 on: September 27, 2013, 05:02:24 pm »

snip

Try decoding the invasion announcements and the caravan ones, see which variable refers to race names.

I actually know this one.

Code: [Select]
GLOBAL
CHAR
IKEY
CHOICE
LOCX
LINK
TREESREMOVED
DIPLOMACYFLAG_SUCCESS
DIPLOMACYFLAG_FAILURE
YOURCIV
YOURFORT
NULL
LOCAL_LARGE_PREDATOR
RANGE
DIPLOMAT
ASSOCIATE
ACTOR
NOBLE
ADD_FLAG
REMOVE_FLAG
NATIVENAME
TRANSLATEDNAME
TITLENAME
HISTNAME

These should all be valid in the weird text files. Not sure what a few of them do.

News: Got a pm from sackhead - removing CAN_LEARN from mamaphints instead to fix these issues is okay by him. Should add natural skills to make them skilled instead.

Wouldn't CAN_SPEAK being removed fix the problem without making them able to become mayor?

kero42

  • Bay Watcher
  • Das sind mir unbekannte Blumen.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2477 on: September 27, 2013, 05:12:24 pm »

Something (mildly) weird happened, so I figure I should report it.
Some formic merchants have been sitting on the border of my map for a while, as my little insect men are too busy to finish the depot. Apparently I left them waiting so long that the merchant fell into melancholy. The weird thing is that his pack beetle did too. Is that normal? I'll admit to having little experience with these things, even in vanilla, but I was pretty sure pack beetles weren't meant to sucumb to melancholy.
Spoiler (click to show/hide)

While I'm posting:

Are Formics meant to arrive with the regent noble? Edit: (nevermind, read the guide)

Also, can any one think of a reason that my formics can't butcher the other dead pack beetles (that belong to me and starved due to neglect). The're in a refuse stockpile, my ants have butchering enabled, and the butchers workshop is slaughtering live animals (namely hounds and water grubs, did not anticipate how much they could breed when I decided to bring ten grubs :P) quite fine. Apart from that, everything seems to be working fine, but its annoying not being able to see what caste a formic is when creating a squad, (as while I would like to use workers as an emergency "defend the queen at all costs" squad, I would prefer to leave the soldiering to the soldier caste).
Overall, I'm quite enjoying myself here.
« Last Edit: September 27, 2013, 05:56:23 pm by kero42 »
Logged
Something I find interesting and thought I should share: DF from scratch: http://www.bay12forums.com/smf/index.php?topic=127552.0

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2478 on: September 27, 2013, 05:21:41 pm »

Try making a corpse stockpile indoors near the butchers shop, and make sure in (o)rders, under refuse, your people can recover bodies from outside.

I think, without the stockpile, bodies are just treated like refuse.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Halfling

  • Bay Watcher
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2479 on: September 27, 2013, 06:08:28 pm »

Considering multiple races are playable and do everything, now that I think of it, replacing fort mode dialog screens with something more neutral would be desirable.

Yeah, the screenshot above was really just a test to see if it worked at all. We really should come up with something that works for any playable race. (It would also be nice to know what substitution strings work; with luck, we might be able to get, say, the name of the race inserted into the text.)

Incidentally, how did you edit that file?

I made a pair of Perl scripts to convert them to plain text files and back:
Spoiler: Perl scripts (click to show/hide)

That's why I'm a little miffed at the creators of the original so far to be unnamed utilities. They could have just told us how to do it instead of distributing a stupid chunk of useless binary.

Agreed. So here's the meat of it:
  • Each file contains a 4-byte little-endian length tag, followed by a zlib (RFC 1950) DEFLATE stream.
  • The decompressed stream starts with a 4-byte count, followed by the indicated number of text records.
  • Each text record starts with two little-endian length tags, first a 4-byte one and then a 2-byte one. Both contain the same value. Don't ask me why. These length tags are followed by the indicated number of bytes of text.
  • Each file seems to contain at least three text records, sometimes more. The first record just repeats the name of the file, the second contains the title, and the remaining records contain the body of the announcement. There doesn't seem to be any obvious logic in how the body is split into records; I suspect the splitting points may simply correspond to manual line breaks in whatever text file these were originally generated from, and my scripts behave accordingly (i.e. they map each record to one line, and vice versa).
For example, here's the decoded version of data/announcement/fortressintro from vanilla DF, with one line per record:
Code: [Select]
fortressintro
[TITLE]A Dwarven Outpost[/TITLE]
[P]You have arrived.  After a journey from the Mountainhomes into the
forbidding wilderness beyond, your harsh trek has finally
ended.  Your party of seven is to make an
outpost for the glory of all of [VAR:NATIVENAME:GLOBAL:YOURCIV].
[P]There are almost no supplies left, but with stout labor
comes sustenance.  Whether by bolt, plow or hook, provide
for your dwarves.  You are expecting a supply caravan just before
winter entombs you, but it is Spring now.
Enough time to delve secure lodgings, ere the [VAR:NAME_PLURAL:GLOBAL:LOCAL_LARGE_PREDATOR] get hungry.
A new chapter of dwarven history begins here at this place, [VAR:NATIVENAME:GLOBAL:YOURFORT],
"[VAR:TRANSLATEDNAME:GLOBAL:YOURFORT]".  Strike the earth!

Things to test:
  • Can there be more than one DEFLATE stream per file? The presence of the length tag would allow it, but I suspect it may just be there to simplify the input code.
  • What happens if the first record doesn't match the file name?
  • Does the title need to be a separate record, or can it share a record with the body? What happens if you have more than one title? No title?
  • What tags can we use in the body? The decoded text above shows a few, but are there more?

Ps. I just tested, and it seems the Perl scripts above can decode all the files under data/announcement, data/dipscript and data/help folders. The data/index file is also in the same format, but the strings in it have been further obfuscated somehow, and I haven't fully figured out the method yet.  (Subtracting the first byte of each string from 255, the second from 254, etc. seems to be enough for the first few bytes, but then it breaks down.)

Edit: The subtraction trick works, except that after the fifth byte, you loop back to 255 again.  In Perl code:
Code: [Select]
my @str = unpack "C*", $str;
for my $k (0 .. $#str) {
    $str[$k] = 255 - ($k % 5) - $str[$k];
}
$str = pack "C*", @str;

And here's the decoded index file:
Spoiler (click to show/hide)

I'm not sure how all those lines relate to each other, but I do see some modding potential here.

Wonderful, wonderful. Now this is something I'll be happy to endorse. Thanks for your contribution. I'll also put it in the first post.

So with that, would you like to write the "neutral" intro yourself or is there another volunteer? I think he should get to do it if he wants to because he brought it up and made it easy.

Oh, how did you figure this one out?

Halfling

  • Bay Watcher
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2480 on: September 27, 2013, 06:26:36 pm »

Wouldn't CAN_SPEAK being removed fix the problem without making them able to become mayor?

They don't have CAN_SPEAK, only CAN_LEARN and that is enough to cause all the issues.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2481 on: September 27, 2013, 06:27:56 pm »

Really? [CAN_SPEAK] is what causes the mayoral issues, AFAIK, but this checks out...

Halfling

  • Bay Watcher
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2482 on: September 27, 2013, 06:29:58 pm »

That would appear to not be the case, as they never had CAN_SPEAK and the issues are earlier exemplified and not theoretical :P

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2483 on: September 27, 2013, 07:34:09 pm »

Uploaded.

If the game comes up with a corrupt compressed file error, replace kingarrival with a vanilla one. I had no opportunity to test it, since it's not exactly the easiest thing to test.

Aseaheru

  • Bay Watcher
  • Cursed by the Elves with a title.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2484 on: September 27, 2013, 08:31:43 pm »

Well, we got some problems down in brewed swamps...
Vids shall be up shortly.
Logged
Highly Opinionated Fool
Warning, nearly incapable of expressing tone in text

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2485 on: September 27, 2013, 09:53:51 pm »

Hmm, with Putnam and my recent, somewhat similar interactions, I think we need to iron out cosmology a bit.

We've got monks that learn to unravel and reshape the universe through sheer thought, and also the possibility of people doing the same by learning metaphysical truths. Both are knowledge/philosophy based, and both currently do similar things within the game.

There must be a link between the practices, I think, and if not we may have to change them to differentiate them a bit. But they are thematically similar, so I would prefer to find the connection rather than rewriting them.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2486 on: September 27, 2013, 10:13:20 pm »

Uh.

So, uh.

Uh.

Holy fucking shit. I just ran a batch file to decode every single one of the weird text files in the game and... the help files are arranged by hyperlinks:

Code: (Adventurer's manual code) [Select]
a_first
[TITLE]The Manual: Your First Adventurer[/TITLE]
Before you begin, you need to create your adventurer.
[B]
First, you choose from among the available human, dwarf and elf civilizations or choose a retired adventurer once you have one.  All characters are currently associated to a human hamlet or town when they begin as those are the only ones that have fleshed-out sites.  New adventurers also pick a status from among peasant, hero and demigod.  The only effect of this status is to determine how powerful your character is at the beginning of the game.  The status will be indicated in your introduction in legends mode.
[B]
Second, you need to select attributes and skills to improve.  Among skills, most of the mental ones have no use in adventure mode currently, but kinesthetic sense and spatial sense can be used in combat.  Fighter and Observer are useful skills for combat.  Fighter influences your aiming chances greatly, relatively to your opponent's skill.  Your weapon skill will determine your starting equipment.  In the final screen you can select a name and gender for yourself.
[B]
Unless your world was somehow catastrophically depopulated, you should start in a hamlet or town with many cottages.  Feel free to explore, but in order to give yourself some direction, you can talk ([IKEY:A_TALK]) to people to get information and recruit followers.  The number and quality of the people that will join you depends on your overall skill and reputation.  You can ask people in town for numerous tasks at a time, though you might want to avoid this to reduce clutter in your log.  If somebody refers you elsewhere for a task, you can still ask for tasks again to obtain any additional tasks that person is interested in mentioning.
[B]
Once you are ready to go, you can press [IKEY:A_TRAVEL] (in friendly locations).  This takes you to the travel map, where you can move more quickly to your destination.  View your adventurer log ([IKEY:A_LOG]) to help you locate sites you know about or to remind you of your tasks.  You cannot enter certain sites from the travel map.  Stop travel ([IKEY:A_END_TRAVEL]) from the outskirts to approach these places carefully.
[B]
You'll need to eat and drink.  You start with some water, and you can refill your waterskin at a river or well.  Food is sold in town and you can also butcher animals that you kill in the wilderness.  It is important to stay well-rested, but it is dangerous to sleep outside, especially at night.  Travel with others or obtain permission to sleep in cottages or castles for the night.
[B]
If you cannot make use of the objects you find, remember that you can still sell them at towns and obtain more useful ones there.  There are many currencies in use in the world, and you may find that you have to trade in some types of coins as regular objects.  This devalues them significantly at this time.
[B]
Remember to check the key bindings to see a list of your options.  There are many commands that were not described here.
[B]
[LINK:data/help/a_keys]Key Bindings[/LINK]

What this means is that help files can be included in-game. For any mod.

Wowee zowee.

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2487 on: September 27, 2013, 10:18:34 pm »

*spit take*

Holy fuck! Well, we'll need to be careful. Wouldn't want to provide confusion, but also wouldn't want to give people a whole wiki from within the game. And wouldn't want to remove quick help reminders from those who haven't entirely figured out the UI (most people). Still, getting the play guides in there would be awesome.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2488 on: September 27, 2013, 10:20:28 pm »

The fact that they're arranged by folder, with the DF folder being implied, means that we could just make an entire subfolder for the DFFS stuff and replace only, say, 3 files: reclaim help, adventurer help and dwarf mode help.

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #2489 on: September 27, 2013, 10:22:24 pm »

Couldn't we just add more links to an existing file? Adventurer is probably where people have the most trouble with the controls.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?
Pages: 1 ... 164 165 [166] 167 168 ... 261