| Mirage Source http://miragesource.net/forums/ |
|
| Custom Character File issues -_- http://miragesource.net/forums/viewtopic.php?f=201&t=4383 |
Page 1 of 1 |
| Author: | JadeCurt1ss [ Sat Sep 20, 2008 6:02 am ] |
| Post subject: | Custom Character File issues -_- |
Whee! First Post ^^;; Ok so, my head developer hands me the source, and I open it, start learning things... ok going well so far. First Assignment: Separate Male/ Female Sheets for custom characters. Alright, load up modHandledata to find this: Quote: If FileExists("GFX\Heads.bmp") Then frmNewChar.iconn(0).Picture = LoadPicture(App.Path & "\GFX\Heads.bmp") End If If FileExists("GFX\Bodys.bmp") Then frmNewChar.iconn(1).Picture = LoadPicture(App.Path & "\GFX\Bodys.bmp") End If If FileExists("GFX\Legs.bmp") Then frmNewChar.iconn(2).Picture = LoadPicture(App.Path & "\GFX\Legs.bmp") End If k, so I see that he is using Option(Radio) buttons for this and accodingly I rewrite the code to: Quote: if frmNewChar.optMale.value = true then If FileExists("GFX\MaleHeads.bmp") Then frmNewChar.iconn(0).Picture = LoadPicture(App.Path & "\GFX\MaleHeads.bmp") End If If FileExists("GFX\MaleBodys.bmp") Then frmNewChar.iconn(1).Picture = LoadPicture(App.Path & "\GFX\MaleBodys.bmp") End If If FileExists("GFX\MaleLegs.bmp") Then frmNewChar.iconn(2).Picture = LoadPicture(App.Path & "\GFX\MaleLegs.bmp") End If else if frmNewChar.optFemale.value = true then If FileExists("GFX\FemaleHeads.bmp") Then frmNewChar.iconn(0).Picture = LoadPicture(App.Path & "\GFX\FemaleHeads.bmp") End If If FileExists("GFX\FemaleBodys.bmp") Then frmNewChar.iconn(1).Picture = LoadPicture(App.Path & "\GFX\FemaleBodys.bmp") End If If FileExists("GFX\FemaleLegs.bmp") Then frmNewChar.iconn(2).Picture = LoadPicture(App.Path & "\GFX\FemaleLegs.bmp") End If end if End if Great! Looks good... But wait, it only loads only the Male or only the Female sets at any given time, it won't let me use the radio and gender buttons to my advantage. HELP! |
|
| Author: | Lea [ Sat Sep 20, 2008 6:11 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Welcome to Mirage I'm not exactly sure I understand what you're trying to do? That code looks like it will switch the shown character for you fine. |
|
| Author: | Kousaten [ Sat Sep 20, 2008 6:14 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Try removing the optFemale.value = True part. Radio buttons are supposed to work in the way that only one can be true at any given time on the same frame, so if male is true then load the male, else, just load everything else. It saves two lines if nothing else. I don't know if it'll work out the way you want it, to be honest. |
|
| Author: | JadeCurt1ss [ Sat Sep 20, 2008 6:43 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Well I edited out those 2 lines, and it still loaded only the Male set (Heads,Bodies,Legs). Also, the data was never transfered. It still used the stock heads, etc. Its like the picture was changed, but beyond that, nothing happened, the originals are still in place. (That's bad, btw.) This whole if file exists statement means this is the only section of the code the engine/build is looking for that particular file, correct? I'll be a bit more cognitive after some sleep. Thanks for putting up with my over-tired frustrated self ^^ |
|
| Author: | William [ Sat Sep 20, 2008 10:07 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Please use code tags and not quote tags. |
|
| Author: | Robin [ Sat Sep 20, 2008 10:14 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Is this Mirage or Eclipse? |
|
| Author: | William [ Sat Sep 20, 2008 10:15 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Why would someone from Eclipse post their code here when Eclipse has their own forum |
|
| Author: | Robin [ Sat Sep 20, 2008 10:16 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Many people have done it in the past. People from Elysium do it too. |
|
| Author: | William [ Sat Sep 20, 2008 11:16 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Well I guess if they fail to get help at their forum it's not a bad thing to attempt to get help elsewhere. |
|
| Author: | Lea [ Sat Sep 20, 2008 5:59 pm ] |
| Post subject: | Re: Custom Character File issues -_- |
I think we'll first ask what the bitmap files contain, and what they are supposed to show on the form. What is contained in the bitmap, and what do you want to show? |
|
| Author: | Lea [ Sat Sep 20, 2008 7:07 pm ] |
| Post subject: | Re: Custom Character File issues -_- |
um.. wrong thread? |
|
| Author: | JadeCurt1ss [ Thu Sep 25, 2008 1:52 am ] |
| Post subject: | Re: Custom Character File issues -_- |
Amazingly, somone at eclipse suggested a fix: searching the entire code for the bmp files. It works now. I'm really beginning to hate the eclipse forums, but I like 2.7 a lot, so I'm just going to come here from now on because you all are geared toward source editing, and that's what I'm focusing on right now. DFA, you were right, and I wish I hadn't seen it, though 2.6 was not much of an update. But I digress. The people at eclipse are pompous assholes when you really want to start learning how to use the engine properly and change the source to your liking. Thanks for the help and expect me to be posting a lot more here soon. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|