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 ... 230 231 [232] 233 234 ... 261

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

Dwarf4Explosives

  • Bay Watcher
  • Souls are tasty. Kinda like bacon.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3465 on: March 02, 2014, 01:28:35 pm »

Probably not the best thing to do, unless you want to add [GENDERLESS] to the castes of the larvae and pupae.
The maximum size is one less than 2^31, which is 2147483647. Presumably, it would be possible for it to loop around and become negative.
So, enough for a 2 meter tall, 2 meter wide, 536 meter long Jörmungandr, but apparently too small for all but the smallest incarnation of Godzilla. Would anyone like me to come up with an incarnation for their god character?
Logged
And yet another bit of proof that RNG is toying with us. We do 1984, it does animal farm
...why do your hydras have two more heads than mine? 
Does that mean male hydras... oh god dammit.

Urdothor

  • Bay Watcher
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3466 on: March 02, 2014, 01:41:00 pm »

There has not been a release of the mod since Kopouts turn.
I think we have all been pretty busy
Logged

CaptainMcClellan

  • Bay Watcher
  • [WAS_NEVER_HERE][CUBE]
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3467 on: March 02, 2014, 01:47:16 pm »

That was the plan, is there any reason it wouldn't work?

Dwarf4Explosives

  • Bay Watcher
  • Souls are tasty. Kinda like bacon.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3468 on: March 02, 2014, 02:24:13 pm »

That was the plan, is there any reason it wouldn't work?
No particular reason, just that it would be hard to code properly, and would take a lot of time to debug, if creatures with "normal" lifecycles are anything to go by.
Logged
And yet another bit of proof that RNG is toying with us. We do 1984, it does animal farm
...why do your hydras have two more heads than mine? 
Does that mean male hydras... oh god dammit.

Urdothor

  • Bay Watcher
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3469 on: March 02, 2014, 02:26:26 pm »

That reminds me, the starfish with flying offspring werent going well before i had to stop coding


Edit: I should be able to continue in a few days
« Last Edit: March 02, 2014, 02:31:11 pm by Urdothor »
Logged

DrKillPatient

  • Bay Watcher
  • The yak falls infinitely
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3470 on: March 02, 2014, 02:39:34 pm »

The maximum size is one less than 2^31, which is 2147483647. Presumably, it would be possible for it to loop around and become negative.

Surely creature size is unsigned; there's no reason it should take on negative values — in that case, the max size would be (2^32)-1 = 4,294,967,295 cm³ ≈ 4.3 million liters (which is, apparently, about 1.7 times the minimum volume of an Olympic swimming pool).
Logged
"Frankly, if you're hanging out with people who tell you to use v.begin() instead of &v[0], you need to rethink your social circle."
    Scott Meyers, Effective STL

I've written bash scripts to make using DF easier under Linux!

Dwarf4Explosives

  • Bay Watcher
  • Souls are tasty. Kinda like bacon.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3471 on: March 02, 2014, 02:48:08 pm »

I really hope that [RELSIZE] can take on negative values though. I got an idea1 for making it seem like space is warped and increasing the size of the main body by giving the wings a looping negative [RELSIZE].

Footnote 1:
Spoiler (click to show/hide)

EDIT: Here's a way to estimate the size of a tile: 10 km/h corresponds to 920 speed, a deduction made by comparing the average human speed in RL to that in vanilla DF.
« Last Edit: March 02, 2014, 02:51:57 pm by Dwarf4Explosives »
Logged
And yet another bit of proof that RNG is toying with us. We do 1984, it does animal farm
...why do your hydras have two more heads than mine? 
Does that mean male hydras... oh god dammit.

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3472 on: March 02, 2014, 03:17:05 pm »

At best, the game treats negative values like 0's. At worst, it crashes. Bear in mind that increasing the relsize of a body part does not increase the size of the creature, so unless you also make the total body size larger, the rest of the body actually gets smaller to make room for the bigger part. For instance, you could have a creature with massive wings, yet cut off the wings and it's the same size and mass as a dog.

Any creature going over the size limit is NOT negative, but rather goes back around and becomes tiny (size-2147483647).
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?

Dwarf4Explosives

  • Bay Watcher
  • Souls are tasty. Kinda like bacon.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3473 on: March 02, 2014, 03:38:38 pm »

I know that; that's exactly what I plan to exploit: I set the relsize of the wings so high that it becomes ridiculously small (or even negative) as a result of looping, thereby freeing up extra space for the other body parts.
Logged
And yet another bit of proof that RNG is toying with us. We do 1984, it does animal farm
...why do your hydras have two more heads than mine? 
Does that mean male hydras... oh god dammit.

CaptainMcClellan

  • Bay Watcher
  • [WAS_NEVER_HERE][CUBE]
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3474 on: March 02, 2014, 03:39:46 pm »

So then. After the conversation about creature size limits reaches a number of replies the limit of a standard int, it *won't* wrap around into a negative reaction from the forumites? Impressive!

( Later, I imagine that Toady One will make creature sizes an unsigned long because of the infamy of this thread. )

Dwarf4Explosives

  • Bay Watcher
  • Souls are tasty. Kinda like bacon.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3475 on: March 02, 2014, 03:41:42 pm »

What does "unsigned" mean anyway?
Logged
And yet another bit of proof that RNG is toying with us. We do 1984, it does animal farm
...why do your hydras have two more heads than mine? 
Does that mean male hydras... oh god dammit.

CaptainMcClellan

  • Bay Watcher
  • [WAS_NEVER_HERE][CUBE]
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3476 on: March 02, 2014, 03:51:19 pm »

It's a data type. It means that the numbers can only be positive or zero. It'd be like taking an absolute value.

... This game is written in C++ right?

Dwarf4Explosives

  • Bay Watcher
  • Souls are tasty. Kinda like bacon.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3477 on: March 02, 2014, 03:53:46 pm »

I think so. Unsigned relsizes would be the best target for RAW abuse, though. If Toady implements that, modders will probably assign negative relsizes to every BP not used in attacks.
Logged
And yet another bit of proof that RNG is toying with us. We do 1984, it does animal farm
...why do your hydras have two more heads than mine? 
Does that mean male hydras... oh god dammit.

CaptainMcClellan

  • Bay Watcher
  • [WAS_NEVER_HERE][CUBE]
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3478 on: March 02, 2014, 03:59:55 pm »

>.<
Explain for the dumb and tired. And me.

Dwarf4Explosives

  • Bay Watcher
  • Souls are tasty. Kinda like bacon.
    • View Profile
Re: DF from scratch: The entirely player-made universe succession.
« Reply #3479 on: March 02, 2014, 04:11:45 pm »

If it has a negative relsize, that means that the total relsize count (and note that the size of each BP is calculated by dividing the individual relsize by the total relsize) is brought down, making each BP with a positive relsize larger.
Logged
And yet another bit of proof that RNG is toying with us. We do 1984, it does animal farm
...why do your hydras have two more heads than mine? 
Does that mean male hydras... oh god dammit.
Pages: 1 ... 230 231 [232] 233 234 ... 261