[Question] Reading Error Logs

Started by Magikaas, July 14, 2014, 11:04:00 AM

Previous topic - Next topic

Magikaas

#15
Quote from: superpirson on July 15, 2014, 11:11:09 AM
The filename and line number data is stored in the .pdb file, to see that, you need to load the pdb.
What is this enumeration code doing? Are you linking something? Are you using a hopper? Need more background.

When I add the pdb file, the game will not even start. Or would I need to load it in another way?

The entire mod directory I'm using temporary textures 'borrowed' from the mod I used for information when making this mod. The "Miscellaneous Mod Pack"'s "NanoStorage" by Haplo. While developing and testing, I'm using these textures, when I finish, I'm changing them to original textures.

If you need more information, please ask.

Haplo

Hmm, normally your code does look good so far.
I recommend just one thing: Please switch your target framework to .Net 3.5 :)
Right now it is .Net 4.5 and I think that this is may be your main problem..

Magikaas

Quote from: Haplo on July 16, 2014, 03:43:26 PM
Hmm, normally your code does look good so far.
I recommend just one thing: Please switch your target framework to .Net 3.5 :)
Right now it is .Net 4.5 and I think that this is may be your main problem..

Wow, I tried that and it works! Thanks a lot :)

Now I have to figure out what's going wrong here, I have tried to put my own twist on what your mod does, to see what I can do with it, but I think I didn't quite understand what it should do to get the result I want to have. So now it only shows 1 item and nothing is added to the inventory. I'll try to find out what is happening here :P

Thanks again very much for the advice and for letting me use your mod to get into modding. I hope I'll be able to make something original when I finish this :P

Haplo

You need to store the Def for creation, the Label for showing what you have (can maybe come instead from the def) and the stack size. Read the data to your storage list and destroy the original.
For creation you need the Def to spawn the item and then add the stack size to it. And voila you have made the nano storage code  ;D

Magikaas

Quote from: Haplo on July 17, 2014, 01:03:47 AM
You need to store the Def for creation, the Label for showing what you have (can maybe come instead from the def) and the stack size. Read the data to your storage list and destroy the original.
For creation you need the Def to spawn the item and then add the stack size to it. And voila you have made the nano storage code  ;D

That's what I was afraid of. I felt guilty just copy-pasting any code, so I wrote sort of my own version where I thought I could do things somewhat differently, to learn from the code, rather than blindly copying it, since I would have to read it and figure out exactly what it did and why it did what it did. I think I have misunderstood certain parts of the code and in doing so have borked it xD

This evening I intend to try to fix what I borked. Thanks for the advice, I'll take that with me when looking at the code :)