View unanswered posts | View active topics It is currently Thu Oct 03, 2024 11:57 pm



Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
 Sprite Problem 
Author Message

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Sprite Problem
I am new to modding and spriting and such. I am having trouble getting a Drop Crate body sprite to work.
The sprite is in CC Palette and is a bmp file. I'm sure there is a simple solution i've just overlooked something.
Help is much appreciated


Failed to load datafile with the following filepath.
Combat Pod.rte/Images/Combat Pod000


Wed Dec 30, 2009 1:17 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: Sprite Problem
Check FrameCount of the object that uses the sprite, make sure the FilePath is correct, make sure the image has the proper name.


Wed Dec 30, 2009 1:26 am
Profile

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Re: Sprite Problem
didn't check the framecount. I'll check that out.

Thx :)

Edit: Checked the framecount, it was at six and I changed it to 5 to see what it would do and it is still giving me the same error message.


Wed Dec 30, 2009 8:21 am
Profile
User avatar

Joined: Sun Oct 11, 2009 4:48 am
Posts: 133
Reply with quote
Post Re: Sprite Problem
Is the image named Combat Pod000? The 000 at the end is required. Also if your framecount is set to 5 then you need Combat Pod001, Combat Pod002, Combat Pod003, and Combat Pod004 images as well.


Wed Dec 30, 2009 9:22 am
Profile
User avatar

Joined: Fri Dec 28, 2007 4:19 am
Posts: 1119
Reply with quote
Post Re: Sprite Problem
Huh... Did you forget to add the ".bmp" extension?


Wed Dec 30, 2009 4:29 pm
Profile

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Re: Sprite Problem
I changed up the framecount and got it to work. Thanks for your help. I have a feeling I will continue to have minor problems along the way though. :P


Wed Dec 30, 2009 7:38 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Sprite Problem
Don't worry, we all make them now and again, especially when starting out. It's when your minor problems turn into big problems that you know you've become a modder!


Wed Dec 30, 2009 10:41 pm
Profile

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Re: Sprite Problem
Alas, I have come to a second obstacle. Just a couple things that prevent my mod from working correctly:

The drop pod tilts to the left when landed. This throws my soldier into unwanted situations. :cry: I was wondering if there was some way to prevent tilting once landed on flat surfaces.

The drop pod opens once landed and sometimes it doesn't. Plus, i cannot open/close the drop pod doors on command. Am I missing some section of code?

As always, help is much appreciated.


Thu Dec 31, 2009 3:55 am
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Sprite Problem
First the drop pod always doesn't open if its in to deep.
As for the tilting, you'll have to fix how it comes down.
I don't remember how though,


Thu Dec 31, 2009 4:27 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Sprite Problem
To combat the rotation and delivery, you can attach a small lua script, like this one I made up for a project a while ago.
It will orient your drop craft so that it is always upright. When it hits ground it'll gib and deliver your troops.
Attachment:
altstop.txt [252 Bytes]
Downloaded 199 times


Thu Dec 31, 2009 4:32 am
Profile

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Re: Sprite Problem
Oh shi-! lua! As a txt file i converted it to a .lua file. there was an error message that said "File name is not followed by a value with the filepath Combat Pod.rte/Altstop.lua on line 1,2,3,4. Something to that extent. :roll: Helps!


Thu Dec 31, 2009 10:10 am
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post Re: Sprite Problem
I hope when you said you "converted," you mean "renamed .txt to .lua."
Also, it ought to read "ScriptPath = Mod.rte/sub-folder/script.lua"
Not FilePath.


Thu Dec 31, 2009 10:55 am
Profile

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Re: Sprite Problem
Yes, i did rename it. I put the lua script into a sub folder and included it into the index but I don't know if its right though.

ScriptPath = Combat Pod.rte/Combat Pod lua/Altstop.lua :???:


Thu Dec 31, 2009 7:43 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Sprite Problem
Posting the actual error would be cool, rather than a summary. Even better, the mod .rte.


Thu Dec 31, 2009 8:41 pm
Profile

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Re: Sprite Problem
Hopefully this will help.


Attachments:
File comment: Line 10 fails to load.
Index.ini [338 Bytes]
Downloaded 184 times
Thu Dec 31, 2009 9:27 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 22 posts ]  Go to page 1, 2  Next

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