Logo Platform
logo amplifiers simplified

How do I create a new icon ?

Reply
Copied to clipboard!
8 years ago
Feb 11, 2017, 11:39:16 AM

I mean, how do I create a new icon without having to use the Bitmaps/blablabla icon path ?

That mean without having to make new ASSETS files, which I'm really not sure about (they are complicated, they can be overwrited by patches, I can really got things mess up, etc).


I tried to use relative path like "../../Public/MOD/newicon" to no success

Updated 8 years ago.
0Send private message
8 years ago
Feb 13, 2017, 10:57:23 AM

*bump*


I talked with a dev at B2G that told me "I made the UI" : shame on me, I forgot who he is... :/


Could he just tell us if linking to an extern bmp or png or tga is possible or not at the moment ? And is it planned at some point ?

0Send private message
8 years ago
Feb 13, 2017, 5:25:14 PM

Hi Kweel_Nakashyn,


No need to create assets files. Let's say you have a mod called NiceMainMenuIcons, that replaces the icon for "New Game" in the main menu. The content will be like that:


\MyMod\NiceMainMenuIcons.xml

\MyMod\Gui\GuiElements[NiceMainMenuIcons].xml  (the name doesn't matter)

\MyMod\Resources\Bitmaps\Dynamic\MainMenu\NiceMainMenuNewGameSmall.png

\MyMod\Resources\Bitmaps\Dynamic\MainMenu\NiceMainMenuNewGameLarge.png


The content of GuiElements[NiceMainMenuIcons].xml will by like that (just copy-paste from Steam\steamapps\common\Endless Space 2\Public\Gui\GuiElements[MainMenu].xml):


<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <GuiElement Name="MainMenuNewGame">
        <Title>%MainMenuNewGameTitle</Title>
        <Description>%MainMenuNewGameDescription</Description>
        <Icons>
            <Icon Size="Small" Path="Bitmaps/Dynamic/MainMenu/NiceMainMenuNewGameSmall" />
            <Icon Size="Large" Path="Bitmaps/Dynamic/MainMenu/NiceMainMenuNewGameLarge" />
        </Icons>
    </GuiElement>
</Datatable>


You have to put the whole block <GuiElement... and change what you want. The new icons referenced have to be put under \MyMod\Resources\Bitmaps\Dynamic\MainMenu (see above)

Updated 8 years ago.
0Send private message
8 years ago
Feb 13, 2017, 7:08:42 PM

My hero \o/


So, after avoiding cavehats like the french "ressource" and the english "resource", I'm still having problems with it, but I think this helps me immensely.


I'm modding "the wild way", since there is no mod support yet. So I'm editing directly the files in the Public directory.


What I did is :

- modding the GuiElement "MainMenuNewGame" in GuiElements[MainMenu].xml like that :

<GuiElement Name="MainMenuNewGame">
<Title>%MainMenuNewGameTitle</Title>
<Description>%MainMenuNewGameDescription</Description>
<Icons>
<Icon Size="Small" Path="Bitmaps/Atlased/MainMenu/MainMenuNewGameSmall" />
<!--<Icon Size="Large" Path="Bitmaps/Atlased/MainMenu/MainMenuNewGameLarge" />-->
<Icon Size="Large" Path="Bitmaps/Dynamic/MainMenu/chat"/>
</Icons>
</GuiElement>

- then in [[My drive]]:\SteamLibrary\SteamApps\common\Endless Space 2\EndlessSpace2_Data\Resources

=> create a Bitmaps folder

=> then in it, create a Dynamic folder

=> then in it, create a MainMenu folder

=> then in it, place chat.png


The result is there is something that pops up so fast that I'm not sure it's my new icon. I'm trying to capture my game for this.


I think I have a png format issue (pixel number etc), but if that structure is okay, I'll try to figure what is the problem alone by looking into the ASSETS files (I'm starting to think that I abuse of everyone's kindness here :p ).


By the time I correct this, I'll make a mod to show to others (the ability to change icons is important to modders, so we can create our buttons etc).


-edit- I couldn't capture this artefact. Anyway, I tried to put Resources\Bitmaps\Dynamic\MainMenu\chat.png there:

--> [[My drive]]:\SteamLibrary\SteamApps\common\Endless Space 2\EndlessSpace2_Data

--> [[My drive]]:\SteamLibrary\SteamApps\common\Endless Space 2\

--> [[My drive]]:\SteamLibrary\SteamApps\common\Endless Space 2\Public

--> [[My drive]]:\SteamLibrary\SteamApps\common\Endless Space 2\Public\Gui


Unless the problem is the name of the file in the GuiElements[MainMenu].xml (I have to try that too).


-edit- this doesn't work aswell (in each of those 4 pathes).

Ok, I think this will do for tonight. :/

Updated 8 years ago.
0Send private message
8 years ago
Apr 15, 2017, 8:32:48 PM

No need to create assets files. Let's say you have a mod called NiceMainMenuIcons, that replaces the icon for "New Game" in the main menu. The content will be like that:


\MyMod\NiceMainMenuIcons.xml

\MyMod\Gui\GuiElements[NiceMainMenuIcons].xml  (the name doesn't matter)

\MyMod\Resources\Bitmaps\Dynamic\MainMenu\NiceMainMenuNewGameSmall.png

\MyMod\Resources\Bitmaps\Dynamic\MainMenu\NiceMainMenuNewGameLarge.png


The content of GuiElements[NiceMainMenuIcons].xml will by like that (just copy-paste from Steam\steamapps\common\Endless Space 2\Public\Gui\GuiElements[MainMenu].xml):


Where do the image files go if you want to include them in the 'vanilla' game? IOW, since modding isn't open at the moment, I'd like to add image files to the 'base' game. Where would they be located? I've tried:


\Public\Resources\Bitmap\Dynamic\


-and-


\EndlessSpace2_Data\Resources\Bitmaps\Dynamic\


Neither currently works :( 





0Send private message
8 years ago
Apr 19, 2017, 8:27:55 AM

Actually, this doesn't work yet.
Gavos told me in MP that the feature is cut up to release. For release they don't know if they can make it work until firsts patches. So, patience for this.

I guess this would work like on other Amplitude games (so, look for the modding pdf for Endless Legend to know how they may work later).

0Send private message
0Send private message0Send private message
?

Click here to login

Reply
Comment