find a bug, can't build any joy items, need help with this

Started by Wild_Wolve, February 17, 2017, 05:58:20 AM

Previous topic - Next topic

Wild_Wolve

ooooooooouuuuuuuuuuuuuuuuuwwwwwwwwwwwwuuuuuuuuuuuuuuuuoooooooooooooooouuuuuuuuuuuuuuuuuuuuuuuu
wolfhowling and greetings from vienna / austria
hello community


i found a strange bug, which is pretty annoying. i can't build any joy items.
after the last update and after time goes by, where mod creators can update their mods to the current rimworld build, i startet a new colony. now i tried a few times to build a horse show pin and a chesstable,  but it didn't work. i place'd the blueprint, my colonist grab the materials and build it instand, but it instandly dissapeard
i had this strange bug in the past with the cooler but i don't remember, how to fix it.

as i don't know, if this problem is caused by one of the mods, i'm using, i don't know which modder i should contact to get help with it. so i wrote this in here.


my modlist (all are from the steam workshop):
Research Scrolbars
HugsLib
[A16] Wehrmacht [unmaintained]
T] MoreBedsVanilla
[A16] Red ARmy [unmaintained]
20th Century Weapons Mod (20cwm)
NoMoreLazyPawns
Medical Tab
Expanded Prothestics and Organ Engineering
EdB prepare Carefully
Increased Forest Desnity - Base Verion V3.0 A16
Glitter Tech
Efficient Light
Alow Tool
Animal Tab
(A16) Project Fallout v1.4
More Trade Ships
More Furniture
Minerals and Materials
Hospitality A16
A16 [Only Moat] More Vanilla Turrets
Mo'Events
Vegetable Garden
[sd] advanced powergeneration
Hauling hysteresis
Mending
better Pawn Control
AC-Enhanced Crafting
JTZoneButtons
Rimfall: The frontier (1.30)
Deep Core Miner A16 - Glittertech Addon
Condition replacement A16
Recolor STockpile A16
MineAtAll
Bolk meals
AC-Enhanced Hauling
A13 RimHair Styles merged
Lockable Doors
LED lights
Mechanoid Recycling
FF GermanShepard

(yeah i know! that are amny mods :P)


after game start ... i get a few error messages at the console. i made a screenshot of it ---> http://imgur.com/a/Bzj4S
no idea if those may part of the problem
aside from this bug now, the error messages seems not to have any effect, as far as i can say so far. didn't have any other problems, and game starts slow but fine



hoping for some help here
Wolve



RawCode

I made two videos that will help EVERYONE to solve your problem:

first one is a bit "offensive", it designed to explain, why posting text as image is really really bad and just indicator of person who have little to no respect for community.
https://www.youtube.com/watch?v=T-HObADHTwI

second is about how to get proper text file from steam+windows game and yet again, it intentionally made very hard to read, just like your screenshot.
https://www.youtube.com/watch?v=DhHcowmObCA

Wild_Wolve

hm sorry
i didn't noticed, that the screenshot is so bad to read. it looked pretty good, after i made the screenshot. seems the quality got down after the upload on imgur.
i klicked on the "share log" button - here is the link tzo the log file --> https://gist.github.com/d6a12e32f7ba6e82c93533524444892d



RawCode

there is no errors in log, with exception to some mod that loaded out of order and failed as result.
try to build something joy related and check log after that.

Wild_Wolve


Spdskatr

Hmm, a lot of errors at startup. Try these steps and see if the error resolves itself:

0. VERY IMPORTANT Put HugsLib right up to the top of the list, just under Core.

1. Put Lockable Doors AFTER HugsLib.

2. Core Driller - Glitter Tech Addon should also be after the Core Driller mod. It isn't a fully independent mod in itself.

3. Check any mods that add animals. It appears that some animal mods have config errors.

I only see the More Furniture mod affecting buildings, though I don't think it's the problem as it does not contain any C# assemblies.

Do these steps and report back :)

Also RawCode you made my like a whole lot easier.
My mods

If 666 is evil, does that make 25.8069758011 the root of all evil?

RawCode

I will explain entire "trace" of this error:

1) Database is long array with metadata that required to link string key with specific DEF container, that contains metadata required to create actual game objects.
This called hashmap or dictionary.

2) All mods that two completely separate parts, XML part and CLI\DLL\C# part.

3) Due to some flaws of implementation that probably related to early alpha stage and only partial support of custom code mod loading is not atomic.

Atomic? wtf?

Atomic is generic term that used to describe operations, if some operation can fail midstage and end object in undefined state, operation is not atomic.

There is pseudo code that explains this:

byte[] reallylong = new byte[999999];
int offset = -1;

try{
while (true)
{
reallylong [offset++] = CanFailOperation ();
}

}catch (){}

return reallylong;


Operation is obviously NOT atomic, failure will result in array returned in undefined state, it may contain both valid and invalid data, some data can be corrupted at all.


byte[] reallylong = new byte[999999];
int offset = -1;

byte[] localcopy = MakeClone (reallylong);

try{
while (true)
{
localcopy [offset++] = CanFailOperation ();
}

}catch (){
return reallylong;
}

return localcopy;


operation is semiatomic, it either return array unchanged or fully processed, it cannot fail midstage.

4) When mod failed to load C#\DLL component, XML that contains references to types defined by C#\DLL still injected into database.

5) Result is database that contain invalid data.

6) Basically, C#\DLL based mods that have references, should have separate DLL without any references and failsafe that will trigger fallback or reload main mod.
Probably i will provide such failsafe if it's not very time consuming to make.



Spdskatr

Um... what are you talking about? the chess table or the def errors? because I have already found the cause for the def errors.

Of course go ahead if you were talking about the chess table, but what OP really wants is to find out which mod caused the error. (pls no hate I beg you ;D)

Also yes, I am a believer of resolving completely unrelated errors in hope that the other error will resolve itself
My mods

If 666 is evil, does that make 25.8069758011 the root of all evil?

Wild_Wolve

ok Spdskatr
i rearranged the mods, like you said. and i installed Core Driller mod. don't kn ow why, but for some reason it was not installed.
now the log messages don't pop up anymore at the gamestart like it does it til today. thanks so far .. that's better

but i still can't build any joy items
i deactivated FFgermanshepard and tried again ......... but nope,  nothing, my Colonist build a chesstable and a horseshoe pin and it dissapeard instandly.

same thing mit the More Furniture mod ......... nothing

i still have this strange bug

Rawcode, if you write something to get rid of this bug. sorry i don't get it. i understand nothing about programing

RawCode

i already have halfbaked failsafe that can be used to discover actual cause of issue with pinpoint accuracy, i will post it when back home.

you will need to download and install (and enable) provided mod from forum or via steam, run game, try to place joy object and then provide game log, it will have additional information related to def that caused error and owner of that def (if i managed to solve ownership resolution part) or keyword(s) to perform search inside mod folder via notepad++ or similar tool.

i will post again inside this thread with links.

RawCode

download and install this, run game, try to build horseshoe and then any other joy object, post log.

it expected to throw errors and won't fix issue, but will provide information of mod, that likely to cause issue.
in my test case, changed line will look like this instead of just NPE:
System.Exception: HorseshoesPin have invalid thingclass owner is Kagimono

[attachment deleted by admin due to age]

Wild_Wolve

Did that. i install your mode and did a test map.
my colonist build a horse shoe pin und ich have the log for you
look here ---> https://gist.github.com/9a37d8dc96b2751ec0a5fc79535322f1

after the horseshoepin my colonist build a chesstable and finished the job succesfully. the chesstable was still there, so no log errors from that one ö.ö
i don't get why ... befor i installed your mob - rawcode - no one of the joy objects worked.

RawCode

probably issue related to order of mods and only to order, i will research more. sadly, provided log have no information about original cause of issue, but still can be useful in similar cases.

Wild_Wolve

ok
maybee you see something i do not. here is my modlist how you cann see it in my ingame mod menu

Core
HugsLib
LockableDoors
Core driller
Glitter tech
Coredriller glitter tech addon
mechanoid recycling
LED Lights
A16 Rimhair Styles merged
AC-enhanced Hauling
Bulk meals
MineItAll
Recolor Stockpile
Condition Replacement
Rimfall: The frontier (1.30)
JTZoneButtons
AC-Enhanced Crafting
Better Pawn Controll
Mending
Hauling Hysteresis
[sd] advanced powergeneration
Vegetable Garden
Mo'Events
(ONLY MOAT) More vanilla Turrets
Hospitality
Minerals and Materials
More Trade Ships
Project Fallout v1.4
Animal tab
Allow Tool
Efficient Light
Increased Forest desinty -  base version V5.0 A16
EdB Prepare carefully
Expanded Prosthetics and Organ Engineering
Medical tab
NoMoreLazyPawns
20th Century Weapons Mod (20CWM)
[A16] Red Army
[T] MoreBedsVanilla
[A16] Wehrmacht
Research Scrollbars
FFGermanShepherd
More Furniture
Kagimono

Wild_Wolve

i'm stilll have this problem

so any other ideas? anyone?