View unanswered posts | View active topics It is currently Wed Apr 24, 2024 7:33 pm



Reply to topic  [ 4 posts ] 
 weird bug with HDFirearm 
Author Message

Joined: Mon Jul 09, 2012 2:58 pm
Posts: 2
Reply with quote
Post weird bug with HDFirearm
Hello,

I recently started modding, which is mostly just copypasting the .ini's from some standard weapons, changing some values and making a few sprites, but with a HDFirearm I made, I get a very odd error.
The crash report is added below, and the abort screen says it read everything perfectly, ending with "Index.ini - done!"
I have read through all the lines of code multiple times, and I can't seem to find any error.

Attachment:
File comment: crash report
error.png
error.png [ 24.03 KiB | Viewed 2497 times ]


Can anyone help me out?

here are the .ini's:

Attachment:
File comment: the weapon ini
Automator.ini [7.29 KiB]
Downloaded 185 times
Attachment:
File comment: index.ini
Index.ini [302 Bytes]
Downloaded 177 times


Mon Jul 09, 2012 4:15 pm
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post Re: weird bug with HDFirearm
I'm guessing you have only one frame for the weapon.

Try changing FrameCount to 1 under the weapon sprite path.

(FrameCount >= 2 indicates you have multiple frames for the weapon, i.e. the frame(s) that the weapon changes to when it's shot. This is mostly useless, since the shooting sprite only appears for a split second, but some weapons like the gatling gun use it for barrel-spinning animations.)


Mon Jul 09, 2012 5:45 pm
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: weird bug with HDFirearm
The problem may be with the sprites rather than the code. What program did you make them with?

For instance- In my experience, GIMP 2.8 has an error that prevents it from properly saving indexed bitmaps. Whilst most not-in-palette sprites simply render weirdly, CC refused to load any indexed/paletted sprites I made using GIMP 2.8.


Mon Jul 09, 2012 5:58 pm
Profile YIM

Joined: Mon Jul 09, 2012 2:58 pm
Posts: 2
Reply with quote
Post Re: weird bug with HDFirearm
yeah, I do have only 1 frame...*palm*. Dumb mistake. That solved the problem though, so thanks for the help! :D


Mon Jul 09, 2012 6:32 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


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 © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.065s | 19 Queries | GZIP : Off ]