Jump to content

SMX - By Sirillion


Sirillion

Recommended Posts

just a quick question maybe a noob one but i was wondering what do i add to make the local files work without net connection or is it the normal C:/etc/etc/etc/file.jpg ?

 

To make it work offline you will need to edit the windows.xml, styles.xml and controls.xml files and do a search and destroy on the textures.

 

Every instance looking like this:

 

texture="@http://i67.tinypic.com/filename.jpg"

 

Will need to be changed to look like this.

 

texture="@file:///drive:/folder/filename.jpg"

 

Or you can do what Devidian did here.

Link to comment
Share on other sites

I will look into it, sounds like this could be a potential solution to the issue with getting people to download the correct files to get the sprites they need.

 

Here's my test depot, to give you an idea on what it'd look like. You would be able to edit files in place. Next time someone plays with your mod, they would download the latest version automatically. The launcher would download the complete depot, laying the files down in the right spot.

 

StompyNZ made a posting a few weeks ago, going through the steps. You can find it here.

 

Good luck,

 

-SphereII

Link to comment
Share on other sites

Sooo ... according to the number of downloads there are quite a few out the that have been playing around with it now...

 

Have anything broken? Suggestions for improvements? Changes?

 

If not then I will start working on the first complete set of swappable frames which will be the "medieval" ones :)

Link to comment
Share on other sites

Anything working so far - i just made the health and stamina bar using no sprites, then its usable for me. No problems so far ;)

 

Nice, good to hear that you are making it work for you. How did you handle the backdrops and xp bar? They are custom sprites too.

 

I am considering to make a stock sprite version as a swappable alternative, we'll see what I can find time to do.

Link to comment
Share on other sites

i just left them for now, so the numbers are "in the air" but yesterday i had a new idea. I combined the 3 XP sprites with photoshop and want to make a 3 layer architecture.

 

0 = smxxp1bg as texture

1 = a white 360° filled circle (fill with stat)

2 = combined graphics with transparent "hole" where the xp will show up ( http://smx.omega-zirkel.de/sprites/smxxpcombined.png )

 

But i didnt get finished yesterday. by the way how do you apply changes? Do you really restart 7d2d every time ?

 

 

The other things i may also just use as background textures. I post a screen when i got it running.

Link to comment
Share on other sites

i just left them for now, so the numbers are "in the air" but yesterday i had a new idea. I combined the 3 XP sprites with photoshop and want to make a 3 layer architecture.

 

0 = smxxp1bg as texture

1 = a white 360° filled circle (fill with stat)

2 = combined graphics with transparent "hole" where the xp will show up ( http://smx.omega-zirkel.de/smxxp1bg.png )

 

But i didnt get finished yesterday. by the way how do you apply changes? Do you really restart 7d2d every time ?

 

 

The other things i may also just use as background textures. I post a screen when i got it running.

 

Yes, I restart the game every time I test the changes :-)

Link to comment
Share on other sites

Yes, I restart the game every time I test the changes :-)

Oh well that really sucks ;) Thought you had a better way :D just thought about creating a linux VM with a DS locally and just reconnect to the server then, so not the complete game has to restart (its fast from ssd but takes time anyway), or just run the windows DS locally

Link to comment
Share on other sites

Thank you both, it is nice to see ones work being appreciated :-)

 

@Latheos: You are welcome to use it and as I've told others that want to use SMX with their content mods; As long as credit goes where credit is due and it doesn't re-emerge as a stand alone UI mod with a few moved frames, some color changes and a "look what I made" stamp on it we are all good. :-)

Link to comment
Share on other sites

Got it:

 

http://steamcommunity.com/sharedfiles/filedetails/?id=755773903

 


<window name="SMXLevelXPUF1" style="SMXLevelXP.window" >
	<rect pos="0,0" controller="PlayerStatsWindow">

		<texture name="SMXLevelXPBG" pos="12,15" size="120,80" depth="1" texture="@http://smx.omega-zirkel.de/sprites/smxxp1bg.png" />
		<sprite  name="SMXLevelXPBar" pos="40,7" pivot="topleft" depth="2" height="64" width="64" sprite="ui_game_filled_circle" color="128,128,128,255" type="filled" fill="{PlayerLevelFill}" filldirection="radial360" globalopacitymod="2.0"/>
		<texture name="SMXLevelXPFG" pos="12,15" size="120,80" depth="3"  texture="@http://smx.omega-zirkel.de/sprites/smxxpcombined.png" globalopacitymod="1.5" />

		<label depth="4" width="50" pos="48,-7" font_size="32" text="{PlayerLevel}[-]" color="[white]" effect="outline" upper_case="true" justify="center"/>
	</rect>
</window>

 

<texture name="SMXDayTimeBG" pos="-20,12" size="214,148" depth="1" texture="@http://smx.omega-zirkel.de/sprites/smxuf1extra.png" globalopacitymod="1.0" />
<texture name="SMXTempBG" pos="370,-65" size="324,148" depth="1" texture="@http://smx.omega-zirkel.de/sprites/smxuf1extra.png" rotation="180" globalopacitymod="1.5" />

Link to comment
Share on other sites

Got it:

 

http://steamcommunity.com/sharedfiles/filedetails/?id=755773903

 


<window name="SMXLevelXPUF1" style="SMXLevelXP.window" >
	<rect pos="0,0" controller="PlayerStatsWindow">

		<texture name="SMXLevelXPBG" pos="12,15" size="120,80" depth="1" texture="@http://smx.omega-zirkel.de/sprites/smxxp1bg.png" />
		<sprite  name="SMXLevelXPBar" pos="40,7" pivot="topleft" depth="2" height="64" width="64" sprite="ui_game_filled_circle" color="128,128,128,255" type="filled" fill="{PlayerLevelFill}" filldirection="radial360" globalopacitymod="2.0"/>
		<texture name="SMXLevelXPFG" pos="12,15" size="120,80" depth="3"  texture="@http://smx.omega-zirkel.de/sprites/smxxpcombined.png" globalopacitymod="1.5" />

		<label depth="4" width="50" pos="48,-7" font_size="32" text="{PlayerLevel}[-]" color="[white]" effect="outline" upper_case="true" justify="center"/>
	</rect>
</window>

 

<texture name="SMXDayTimeBG" pos="-20,12" size="214,148" depth="1" texture="@http://smx.omega-zirkel.de/sprites/smxuf1extra.png" globalopacitymod="1.0" />
<texture name="SMXTempBG" pos="370,-65" size="324,148" depth="1" texture="@http://smx.omega-zirkel.de/sprites/smxuf1extra.png" rotation="180" globalopacitymod="1.5" />

 

Nicely done.

 

The first version I made was made in a similar way actually.

Link to comment
Share on other sites

thy, why didnt you keep it then ?

 

The health and stamina bar could be realized in a similar way, with a transparent texture overlay, so no mod would be needed.

 

Because it was a "harder" way of doing it. With using the Mod folder I can make sprites in a specific shape and with transparent backgrounds without parts of it need being hidden with using foregrounds since the sprites in the game are somewhat limited to what I want to achieve.

 

I have plans to expand SMX with new art styles in the future and the "Medieval" frame will be the first to come and with the plans I have there it will be impossible to do without using custom sprites anyway.

 

At the time I changed from the way you used now to the way I did it in the end I didn't think about people not being able to place a Mods folder into their game folder as I initially made the mod for a single player experience and that requires them to place folders anyway :)

 

But it is very nice too see that you made it work for you and I will consider adding a no Mod version of it as a swappable frame in a future update.

 

-S

Link to comment
Share on other sites

Sounds good to me, to have a choice what to use, if i can help you redo something you have as sprite with textures, just tell me, i'll try my best - im just not good in graphics, thats why i dont create my own UI, im just good in coding as this is my job and my hobby :D

Link to comment
Share on other sites

Created an good overlay from your png's through alpha channels for health and stamina bar:

 

http://images.akamai.steamusercontent.com/ugc/254839288187954400/C4001F02D7D57992A3C874726BF28E82BFC27D46/

 

		<grid name="SMXHSFrame" pos="0,150" rows="2" cols="1" width="240" cell_width="240" cell_height="35" repeat_content="false" controller="InGameHUD" side="left" >			<rect width="240" height="35" controller="HUDStatBar" stat_type="Health" visible="{StatVisible}">
			<texture name="SMXHealthBarBG" depth="1" size="240,54" texture="@http://smx.omega-zirkel.de/healthbarempty.png" material="Materials/Transparent Colored" pos="0,-55" /> <!-- Local Asset Equivalent: healthbarempty.png -->
			<sprite name="SMXHealthBar" depth="2" size="220,22" color="181,29,29" type="filled" fill="{StatFill}" pos="8,-68" />
			<texture name="SMXHealthBarFG" depth="3" size="220,28" texture="@http://smx.omega-zirkel.de/sprites/smxuf1health_overlay.png" material="Materials/Transparent Colored" pos="8,-65" />
			<label depth="6" name="TextContent" pos="0,-62" font_size="32" effect="outline" color="[white]" justify="center" pivot="topleft" text="{StatCurrent}" />
		</rect>

		<rect width="240" height="35" controller="HUDStatBar" stat_type="Stamina" visible="{StatVisible}">
			<texture name="SMXStaminaBarBG" depth="1" size="240,54" texture="@http://smx.omega-zirkel.de/staminabarempty.png" material="Materials/Transparent Colored" pos="0,-55" /> <!-- Local Asset Equivalent: staminabarempty.png -->
			<sprite name="SMXStaminaBar" depth="2" size="220,22" color="218,255,23" type="filled" fill="{StatFill}" pos="8,-71" />
			<texture name="SMXStaminaBarFG" depth="3" size="220,30" texture="@http://smx.omega-zirkel.de/sprites/smxuf1stamina_overlay.png" material="Materials/Transparent Colored" pos="8,-67" />
			<label depth="6" name="TextContent" pos="0,-64" font_size="32" effect="outline" color="[white]" justify="center" pivot="topleft" text="{StatCurrent}" />
		</rect>
	</grid>

Link to comment
Share on other sites

Hay Sirillion I am updating to your new files and after merging everything im getting an error

2016-09-04T08:27:47 49.680 ERR Global style key '255,255,255' not found!
SDX: LoadWithType: Textures/UI/ui_game_compass, Texture

Not sure how to track that down. Any help would be appreciated. Thanks.

Also not sure where to put the Local Assets in the files

Link to comment
Share on other sites

I am in a hurry atm so I cannot investigate but a tip is to look in the styles.xml and the compass texture window style. Did you add or remove something from it? If you changed the color there did you remove the [] from the global style that is the default?

 

<style name="SMXcompass.window.compass.texture" type="texture">
	<style_entry name="depth" value="8"/>
	<style_entry name="height" value="23" />
	<style_entry name="width" value="300" />
	<style_entry name="pos" value="50, -3" />
[color="#FF0000"]		<style_entry name="color" value="[iconColor]"/>[/color]
	<style_entry name="tooltip" value="CHARACTER" />
	<style_entry name="texture" value="Textures/UI/ui_game_compass" />
</style>

 

From reading your error that's where I would start. I will look into it when I get back home.

Link to comment
Share on other sites

I dont know mine looks the same as yours

<style name="SMXcompass.window.compass.texture" type="texture">
	<style_entry name="depth" value="8" />
	<style_entry name="height" value="23" />
	<style_entry name="width" value="300" />
	<style_entry name="pos" value="50, -3" />
	<style_entry name="color" value="[iconColor]" />
	<style_entry name="tooltip" value="CHARACTER" />
	<style_entry name="texture" value="Textures/UI/ui_game_compass" />
</style>

Link to comment
Share on other sites

Hmmm, I just noticed it says SDX on a line there.

 

The error seems to be it not being able to find a global style key. Afaik those are the ones at the start of the file with brackets on it, like [white], [red] and the likes. Check your files for one with [255,255,255] or something. By the look of the error I would search for that.

 

If it's something to do with SDX then I cannot help as I don't know the first thing of it.

Link to comment
Share on other sites

Seem to be having abit of trouble with the Health and Stamina bar colours not appearing. I've placed both the Local Assets Folder and the Mods folder in the same folder as the XUI one. Am I doing something wrong?

[ATTACH=CONFIG]16184[/ATTACH]

 

Hi there,

 

The Local Assets folder is just for people that need to have an offline version or want to host the assets themselves. It is not needed for the mod to work out of the box.

 

The problem as you describe it is because the game cannot reach the custom sprites and that means that the Mods folder is not correctly placed in the 7DTD install directory.

 

Take a look in the install directory and check that the placement is as follows.

 

\steamapps\common\7 Days To Die\Mods\

 

The entire and correct path should be

 

\steamapps\common\7 Days To Die\Mods\SMX\ItemIcons

 

In the ItemIcons folder you should see a series of image files, those are what make up bars and backdrops in the game.

 

Hope that works out for you :)

 

-S

Link to comment
Share on other sites

Hi there,

 

The Local Assets folder is just for people that need to have an offline version or want to host the assets themselves. It is not needed for the mod to work out of the box.

 

The problem as you describe it is because the game cannot reach the custom sprites and that means that the Mods folder is not correctly placed in the 7DTD install directory.

 

Take a look in the install directory and check that the placement is as follows.

 

\steamapps\common\7 Days To Die\Mods\

 

The entire and correct path should be

 

\steamapps\common\7 Days To Die\Mods\SMX\ItemIcons

 

In the ItemIcons folder you should see a series of image files, those are what make up bars and backdrops in the game.

 

Hope that works out for you :)

 

-S

 

Ooooo~ So that's where the Mods folder goes. I was actually putting it in the data folder instead. It works now :D

 

Thanks! Great mod by the way~ :p

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...