Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 409 410 [411] 412 413 ... 544

Author Topic: [MODDING] 0.34. QUESTIONS THREAD  (Read 999383 times)

mcbucko

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6150 on: October 03, 2013, 12:19:21 am »

This has probably been asked before, but is it possible to set up in the raws that only a single individual of a creature spawns during worldgen?
Logged

evictedSaint

  • Bay Watcher
  • if (ANNOYED_W_FANS==true) { KILL_CHAR(rand()); }
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6151 on: October 03, 2013, 01:01:22 am »

I think you can do that by setting the pop cap and site and civ cap to 1.

I'm not sure if it works 100%, and they will probably die out around year 2 or so.

Ravendarksky

  • Bay Watcher
    • View Profile
    • DFMon.exe - Get rid of DF SPAM
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6152 on: October 03, 2013, 02:20:44 am »

OK for anyone else interested (and hopefully for people using the forum search functionality). if you want to read the gamelog.txt file / RAWS from a program and get the correct special character symbols then you need to use one of the following three text encodings:

IBM437 - Worst
ibm850 - Best
IBM00858 - OK

Ontop of this if you are reading the file in windows, due to some windows crap you will also need to substitute char 15 with char 164.
eg (C#)
Code: [Select]
text= text.Replace(Convert.ToChar(15), Convert.ToChar(164));
I've done EXTENSIVE research into this now and actually been through every single text encoding available as standard in windows. These are the only three which are suitable.

A quote from the almighties themselves:

Quote
Ah, gamelog.txt is a standard text file, but it has some higher order
characters in it (from the names that don't use the 26 letter
alphabet).  Those should map to IBM Codepage 437 characters (the
extended ascii the game uses, the same as the font file in the
data/art folder).
« Last Edit: October 03, 2013, 04:35:40 am by Ravendarksky »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6153 on: October 03, 2013, 02:22:52 am »

Nice, very nice. Should help quite a lot.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6154 on: October 03, 2013, 08:02:40 am »

That should definitely go on the wiki, because it will be lost in this thread in no time.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

CryptoCactus

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6155 on: October 03, 2013, 11:39:19 pm »

Quick question: I know that adding weapon NATURAL_SKILLs to entity'd races will generally result in an all-that-skill army (e.g. NATURAL_SKILL:BOW:5 resulting in nearly 100% archers during sieges etc.), but is changing SKILL_LEARN_RATEs safe? I'd like to make certain races more adept at using certain weapons, without necessarily making them ALL use that particular weapon type.
Logged
[REFERENCE]Creature Errors - Starvation, immortals, unbreedables, pet problems:
http://www.bay12forums.com/smf/index.php?topic=136374.0

My unofficial Modest Mod update:
http://www.bay12forums.com/smf/index.php?topic=105871.msg5021367#msg5021367

Ravendarksky

  • Bay Watcher
    • View Profile
    • DFMon.exe - Get rid of DF SPAM
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6156 on: October 04, 2013, 03:28:36 am »

A longshot:

Does anyone know the easiest way to read text from a portion of the Dwarf Fortress GUI? Am I going to have to learn some memory hacking or is there an easier way? I just need one line....
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6157 on: October 04, 2013, 03:52:38 am »

Which portion? DFHack has some viewscreen stuff that could fairly easily read off parts without issue, but I'm pretty sure it's dependent on which viewscreen.

Ravendarksky

  • Bay Watcher
    • View Profile
    • DFMon.exe - Get rid of DF SPAM
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6158 on: October 04, 2013, 04:13:21 am »

Which portion? DFHack has some viewscreen stuff that could fairly easily read off parts without issue, but I'm pretty sure it's dependent on which viewscreen.

I'm trying to help Meph out with some overlay code but I need my program to execute some commands when the user is on the Start Playing > Dwarf Fortress > Embark screen. I don't know how to detect this...

Currently I'm working in c# and do not know if I can interface into DFHack from c# (this would be brilliant .. I see something about Remote access interface in the dfhack compile instructions but I'd be lying if I said that means anything to me. )

Currently I can't take anything directly from Dwarf fortress except the process information and window size/position/state/title, and even if this info was of use I'm not keen to use something which will tie my program to windows.

I know the ideal solution would be to learn c++ and write my program as an extension of DFHack, but I just don't know when/if I will have time for this. I've build the DFHack project and had a quick poke at it but I have found it very tough going after 7 years of .NET development.

« Last Edit: October 04, 2013, 06:29:48 pm by Ravendarksky »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6159 on: October 04, 2013, 04:43:42 am »

What are you trying to overlay?

Ravendarksky

  • Bay Watcher
    • View Profile
    • DFMon.exe - Get rid of DF SPAM
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6160 on: October 04, 2013, 05:00:47 am »

Just going to present the user with a series of prompts for various inputs to do with embark parameters as well as executing some external ruby scripts that meph has written
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6161 on: October 04, 2013, 05:02:35 am »

Shouldn't be too hard with Lua. You seem slightly standoffish about this though ._. if it helps, I learned Lua from... mostly just reading how the Lua API works and some googling of various Lua things.

Ravendarksky

  • Bay Watcher
    • View Profile
    • DFMon.exe - Get rid of DF SPAM
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6162 on: October 04, 2013, 06:22:19 am »

Shouldn't be too hard with Lua. You seem slightly standoffish about this though ._. if it helps, I learned Lua from... mostly just reading how the Lua API works and some googling of various Lua things.

Sorry if I seem standoffish... I just get nervous when asking people for help with things like this! I don't want to seem like I'm not willing to put in any effort to figure this stuff out myself. Unfortunately I find it quite difficult to look at new things until I'm quite familiar with them :(

I'll look into the Lua stuff, thanks :)
Logged

Gentlefish

  • Bay Watcher
  • [PREFSTRING: balloon-like qualities]
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6163 on: October 04, 2013, 05:39:25 pm »

LUA's pretty darn intuitive  :) it was my first language, haha.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6164 on: October 04, 2013, 07:50:36 pm »

It's Lua, not LUA :P It's Portuguese for moon.
Pages: 1 ... 409 410 [411] 412 413 ... 544