Data Realms Fan Forums http://45.55.195.193/ |
|
Sprite Problem http://45.55.195.193/viewtopic.php?f=1&t=17466 |
Page 1 of 2 |
Author: | Freeflow [ Wed Dec 30, 2009 1:17 am ] |
Post subject: | 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 |
Author: | CaveCricket48 [ Wed Dec 30, 2009 1:26 am ] |
Post subject: | 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. |
Author: | Freeflow [ Wed Dec 30, 2009 8:21 am ] |
Post subject: | 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. |
Author: | linkfan23 [ Wed Dec 30, 2009 9:22 am ] |
Post subject: | 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. |
Author: | DSMK2 [ Wed Dec 30, 2009 4:29 pm ] |
Post subject: | Re: Sprite Problem |
Huh... Did you forget to add the ".bmp" extension? |
Author: | Freeflow [ Wed Dec 30, 2009 7:38 pm ] |
Post subject: | 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. |
Author: | Duh102 [ Wed Dec 30, 2009 10:41 pm ] |
Post subject: | 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! |
Author: | Freeflow [ Thu Dec 31, 2009 3:55 am ] |
Post subject: | 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. 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. |
Author: | dragonxp [ Thu Dec 31, 2009 4:27 am ] |
Post subject: | 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, |
Author: | Duh102 [ Thu Dec 31, 2009 4:32 am ] |
Post subject: | 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: |
Author: | Freeflow [ Thu Dec 31, 2009 10:10 am ] |
Post subject: | 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. Helps! |
Author: | PhantomAGN [ Thu Dec 31, 2009 10:55 am ] |
Post subject: | 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. |
Author: | Freeflow [ Thu Dec 31, 2009 7:43 pm ] |
Post subject: | 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 |
Author: | Duh102 [ Thu Dec 31, 2009 8:41 pm ] |
Post subject: | Re: Sprite Problem |
Posting the actual error would be cool, rather than a summary. Even better, the mod .rte. |
Author: | Freeflow [ Thu Dec 31, 2009 9:27 pm ] | ||
Post subject: | Re: Sprite Problem | ||
Hopefully this will help.
|
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |