Custom Object Crash

  • 6 Replies
  • 2818 Views
*

Offline Raicuparta

  • 519
  • 41
  • Rai
    • View Profile
Custom Object Crash
« on: September 01, 2010, 17:29:54 »
I have a 96x24 png, divided in 4 tiles, and i want to make it an animated object in Knytt Stories. I placed the png in the custom object folder, and edited the World.ini, adding this:
Code: [Select]
[Custom Object 1]
Image=lady.png
Init AnimTo=3

But as long as I have the [Custom Object n] tag in the ini, the game crashes when I test it, even if I haven't placed the object in the level. Any idea on how to fix this?

PS: sorry if my english isn't the best ;)

*

Offline Ultigonio

  • 325
  • 60
  • I'm sleepy!
    • View Profile
Re: Custom Object Crash
« Reply #1 on: September 01, 2010, 17:37:12 »
I recall having a very similar issue, so I'll take a look at my stuff real quick to see if I can offer any help.  In the case that I can't, though, would you mind sending me the object so I can take a look at it myself?  There might be an issue with the graphic itself.
Indefinitely Held Off:
Pouring
Complete:
This Level Plays Itself!

My SoundCloud

*

Offline Raicuparta

  • 519
  • 41
  • Rai
    • View Profile
Re: Custom Object Crash
« Reply #2 on: September 01, 2010, 17:44:02 »
Thanks. Just checked with the png from here:
http://thaiwonders.com/design/index.php?option=com_content&task=view&id=78&Itemid=211
And with the exact settings (Custom Object 1) and I get the same result. So I'm guessing the problem isn't either the graphic or the code. Still, ill attach it. Also, try not to make fun of it, I'm a noob :P

*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: Custom Object Crash
« Reply #3 on: September 01, 2010, 17:54:54 »
Which version of Knytt Stories do you have? If it isn't the latest one that might be the problem. It could also be an issue with your OS. Finally, there could be something else in your World.ini file that causes the error, or the place where you put the [Custom Object] section.

For what it's worth, I tried the same code and image on my copy of KS and it works fine.

EDIT: it seems that placing the [Custom Object] section at the end of the file, or at least after a room section (like [x1000y1000]) causes a crash. Try moving it at the beginning or right after the [World] section.
« Last Edit: September 01, 2010, 17:58:50 by AA »
Videogames are for everyone, by everyone

*

Offline Raicuparta

  • 519
  • 41
  • Rai
    • View Profile
Re: Custom Object Crash
« Reply #4 on: September 01, 2010, 17:59:14 »
I'm running Windows 7 x64, Knytt Stories Editor 1.2.1

My World.ini:
Code: [Select]
[World]
Name=Level
Author=Raicuparta
Description=
Category A=
Category B=
Difficulty A=
Difficulty B=
Difficulty C=
Size=
Format=2
Clothes=65793
Skin=65793

[Cutscene Music]
Intro=15
Ending=15
[x1003y998]
ShiftXMap(A)=1008
ShiftYMap(A)=998
ShiftSound(A)=None
ShiftTouch(A)=True
ShiftEffect(A)=False
ShiftSave(A)=True
ShiftAbsoluteTarget(A)=True
ShiftVisible(A)=False
ShiftXPos(A)=8
ShiftYPos(A)=5

[Custom Object 9]
Image=pacman.png
Init AnimTo=11
Init AnimSpeed=525
Offset Y=0

EDIT: tried moving the Custom Object section to the middle and the begining, nothing changed :/

EDIT2: The crash report says that the application that crashed is "stdrt.exe" and that there is a flaw in MMFS2.dll
« Last Edit: September 01, 2010, 18:05:05 by Raicuparta »

*

Offline Raicuparta

  • 519
  • 41
  • Rai
    • View Profile
Re: Custom Object Crash
« Reply #5 on: September 01, 2010, 20:45:44 »
Fixed... I feel so stupid. I had the png files in the wrong folder -.- An now I see that I screwed up the animation :P
Thanks for the help, thuogh ;)

*

Offline Ultigonio

  • 325
  • 60
  • I'm sleepy!
    • View Profile
Re: Custom Object Crash
« Reply #6 on: September 02, 2010, 01:08:37 »
Ah, shoot, that's right!  I figured it out just before getting home, and I was going to mention that you needed to have your custom objects in a Custom Object folder.  I had the same exact problem. :P

Anyway, I'm glad you figured it out! :D
Indefinitely Held Off:
Pouring
Complete:
This Level Plays Itself!

My SoundCloud