What kind of things can go wrong with buttons, and how do I fix them.
I have gotten the chat buttons changed with no problem and the join lobby button as well.
I cannot get my new game launch button to work
-
Rand0m_Numb3r
- Posts: 1338
- Joined: Mon Apr 18, 2005 7:00 am
- Location: Madison, Wisconsin
Is it on the list of ASGS protected files? If its one of the images changed or added as part of a code update, then it probably is.
[img]http://www.freeallegiance.org/forums/st ... erator.gif" alt="IPB Image">
<img src="http://adaven6x7.googlepages.com/PKBanner3copy.png[/img]
<img src="http://adaven6x7.googlepages.com/PKBanner3copy.png[/img]
-
Rand0m_Numb3r
- Posts: 1338
- Joined: Mon Apr 18, 2005 7:00 am
- Location: Madison, Wisconsin
-
Dracus_Prime
- Posts: 64
- Joined: Sat Feb 27, 2010 10:29 pm
- Location: Ten-uh-c in da USA
My guess is that it is the image resolution. If it is a high resolution you have to place it the textures file. The question is: What do you mean by "not work"? Do you mean the button stops working, the image doesn't show up, or both? something else? If it is that the image isn't showing up it is almost certainly the image resolution, that is, assuming you replaced the correct filename (then that would be the problem of course
).
Edit: Although, come to think of it, I don't know if buttons will support a high resolution image, I don't know how that works. Probably will, but like I said, you have to put it in the textures folder.
Edit: Although, come to think of it, I don't know if buttons will support a high resolution image, I don't know how that works. Probably will, but like I said, you have to put it in the textures folder.
Last edited by Dracus_Prime on Thu May 06, 2010 12:33 pm, edited 1 time in total.
-----
QUOTE (fuzzylunkin1)Oh my fuzz, you need a blog.[/quote]
QUOTE (fuzzylunkin1)Oh my fuzz, you need a blog.[/quote]
Actually, you can put images in either artwork or \textures, it's just good practise to put stuff in your textures folder so you don't overwrite your default art - so you cna uninstall/revert by simply deleting the file in the \textures folder.
Buttons have a 1:1 pixel mapping a "high res" button will simply be bigger (though likley to get cropped by invisible windows which are hardcoded into the game, provided the game hasn't crashed due to them being the wrong res)
Buttons have a 1:1 pixel mapping a "high res" button will simply be bigger (though likley to get cropped by invisible windows which are hardcoded into the game, provided the game hasn't crashed due to them being the wrong res)
I think your looking about it the wrong way, when I rebuilt Slipstream GUI, I noticed a lot of buttons where in the .png format with .txtmdls and some were bmp.mdls.
It might be worth checking both out when replacing the button. Since if your replacing the wrong one it wont take effect since the gae isnt reading that file.
It might be worth checking both out when replacing the button. Since if your replacing the wrong one it wont take effect since the gae isnt reading that file.
-
Dracus_Prime
- Posts: 64
- Joined: Sat Feb 27, 2010 10:29 pm
- Location: Ten-uh-c in da USA
I was told high resolutions not in the texture folder would crash the game (and some explination of why that I don't rember). If I remember correctly, I tested this claim and found it to be true, but I suppose this may depend on where the texture is used? I don't know, but like Madp said, it is a good idea to place it in the textures folder regardless. Allegiance always checks for the image files there first and if it doesn't find the correct file name it goes to the default file in the artwork folder. (althoughI wonder if the file in the textures folder is corrupt/bad in some way if this stops the process or if alleg just defaults to the image in the artwork folder? That would be a nice feature (although it may make testing highres images a bit more of a pain).madpeople wrote:QUOTE (madpeople @ May 6 2010, 07:54 AM) Actually, you can put images in either artwork or \textures, it's just good practise to put stuff in your textures folder so you don't overwrite your default art - so you cna uninstall/revert by simply deleting the file in the \textures folder.
Buttons have a 1:1 pixel mapping a "high res" button will simply be bigger (though likley to get cropped by invisible windows which are hardcoded into the game, provided the game hasn't crashed due to them being the wrong res)
One thing I forgot to ask is, assuming the problem is that the new button image isn't showing up, did you delete and rebuild the commontextures.pack file? Most image changes won't show up ingame until you do that (and you have the 'use texture pack' option turned on).
-----
QUOTE (fuzzylunkin1)Oh my fuzz, you need a blog.[/quote]
QUOTE (fuzzylunkin1)Oh my fuzz, you need a blog.[/quote]
We tend to release highres textures now using .png and a text bmp.mdl because it results in smaller file size for downloading, less disk usage and faster loading. The when the text bmp.mdl is made the person making it specifies the directory the game should look in for the .png, since we normally put the highres textures (or any other modded textures for that matter) in the \textures folder the person making the mod says "you need to put this in the \textures folder to the ame will crash", but there is nothing stopping you editing the text bmp.mdl to tell the game to look in the \artwork or \artwork\mycustomFolder\MyModimages or whatever for the .png and putting the the bmp.mdl in the \artwork, but why would you? You may as well keep your original art and just put the mods in the \textures.Dracus_Prime wrote:QUOTE (Dracus_Prime @ May 6 2010, 02:11 PM) I was told high resolutions not in the texture folder would crash the game (and some explination of why that I don't rember). If I remember correctly, I tested this claim and found it to be true, but I suppose this may depend on where the texture is used? I don't know
QUOTE One thing I forgot to ask is, assuming the problem is that the new button image isn't showing up, did you delete and rebuild the commontextures.pack file? Most image changes won't show up ingame until you do that (and you have the 'use texture pack' option turned on).[/quote]This is a good point.

