Manic Digger

It is currently Sat Jun 24, 2017 10:35 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Pumpkins and Trapdoors
PostPosted: Fri Aug 19, 2016 11:49 am 
Offline

Joined: Fri Aug 24, 2012 9:23 pm
Posts: 22
Hello,

Here are two mods I made yesterday: one functional, the other giving me issues.

Attachment:
File comment: Pumpkins and slime blocks mod.
Pumpkins.cs [5.98 KiB]
Downloaded 11 times

(Block IDs 300 to 309 occupied)

Attachment:
File comment: Required textures.
blocks.zip [11.56 KiB]
Downloaded 6 times

(Required textures, one of them only required by the next mod, Trapdoor)

The pumpkins mod adds, not only pumpkins and Jack-o'-lanterns, but also the farming of pumpkins, which currently works the same way as crops' growth does, and slime blocks, decorative blocks made out of 1 pumpkin and 2 salt blocks each which can be crafted into different shapes.
The only small problem with it is that I've set slime carpets and slime half blocks' textures to be translucid, even though these block types themselves do not support transparency very well and end up causing graphical glitches along with adjacent normal blocks (can be used to see through the other blocks as if they were all completely invisible when the blocks are adjacent).
A solution to this would be the existence of transparent carpets and transparent half blocks, but it isn't too important anyways.

Attachment:
File comment: Trapdoors mod.
Trapdoors.cs [2.01 KiB]
Downloaded 8 times

(Block IDs 310 and 311 occupied)

This is the trapdoors mod. It does exactly that: adds trapdoors to the game.
My issue with it is that, when I've got it loaded, I cannot open any singleplayer map (except 'default' for some reason, as I can always enter it with the mod and everything's fine) for the second time. The first time, when I generate the map and enter it, everything's alright. When I leave and try to return to the same map, the game just crashes.

Here's what ManicDiggerClientCrash.txt has to say about it:

Quote:
19-08-2016 00:11:36: Critical error occurred
System.NullReferenceException: The reference to the object wasn't defined as an instance of the object
in ProcessPacketTask.ProcessPacket(Packet_Server packet)
in ProcessPacketTask.Run()
in TaskScheduler.Update(Game game, Single dt)
in ScreenGame.Render(Single dt)
in MainMenu.DrawScene(Single dt)
in MainMenu.OnNewFrame(NewFrameEventArgs args)
in MainMenuNewFrameHandler.OnNewFrame(NewFrameEventArgs args)
in GamePlatformNative.window_RenderFrame(Object sender, FrameEventArgs e)
in System.EventHandler`1.Invoke(Object sender, TEventArgs e)
in OpenTK.GameWindow.OnRenderFrame(FrameEventArgs e)
in OpenTK.GameWindow.OnRenderFrameInternal(FrameEventArgs e)
in OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
in OpenTK.GameWindow.DispatchUpdateAndRenderFrame(Object sender, EventArgs e)
in OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
in OpenTK.GameWindow.Run()
in ManicDiggerProgram.Start(String[] args)
in ManicDiggerProgram.<ManicDiggerProgram>c__AnonStorey0.<>m__0()
in ManicDigger.ClientNative.CrashReporter.Start(ThreadStart start)


This information couldn't help me fix the issue at all. It doesn't tell me what's wrong with the file itself, just shows that, whatever it is, affected a bunch of stuff. Maybe this could help you find out what the problem is so I've put it here either way.

Thanks for reading.

PS: I have disabled either of the pumpkins mod and the trapdoors mod alternately and both of them at the same time and tested. The testing allowed me to conclude that, with or without pumpkins, the crashes happen when trapdoors are enabled, and that no crashes happen when trapdoors are disabled, being indifferent wether pumpkins are enabled or not.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group