Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: What does duplicating raws mean?  (Read 1106 times)

UselessMcMiner

  • Bay Watcher
  • praise jeebus
    • View Profile
What does duplicating raws mean?
« on: June 29, 2019, 03:18:33 pm »

Saw it on the Dawnthunder succession page. What does that mean?
Logged
Quote
The scouts have been fighting a giant capuchin for the past month now. They still haven't killed it.

Obsidian 1053

The Sentries are still fighting the capuchin. For two monthes they have done nothing but punch this monkey.

PatrikLundell

  • Bay Watcher
    • View Profile
Re: What does duplicating raws mean?
« Reply #1 on: June 29, 2019, 05:18:01 pm »

It means that files defining "raw" definitions of things have more than one definition of the same thing. That is usually a bad thing, and can lead to all kinds of weirdness and buggy behavior.
One reason for getting this is making a backup of a file before modifying it, and DF reading the backup as well...
Logged

UselessMcMiner

  • Bay Watcher
  • praise jeebus
    • View Profile
Re: What does duplicating raws mean?
« Reply #2 on: June 29, 2019, 08:50:58 pm »

So why does that cause the game to get all fucky?
Logged
Quote
The scouts have been fighting a giant capuchin for the past month now. They still haven't killed it.

Obsidian 1053

The Sentries are still fighting the capuchin. For two monthes they have done nothing but punch this monkey.

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: What does duplicating raws mean?
« Reply #3 on: June 29, 2019, 11:48:11 pm »

Best guess--

Off by X indexing issues, by array indexes being set by num entries read, without checking that some are repeat entries (that get culled).  This causes indexed array lookups to return anomalous results.

That it happens is a sign that inputs are not well sanitized. :P


But, it also allows us to have lots of fun.  There's a bit of balance about getting lots of fun weirdness, without a lot of crashes.
Logged