Jump to content

Sirillion

Members
  • Posts

    1,075
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Sirillion

  1. I must've messed up something but I can't seem to figure it out. The backpack has 72 slots but the inventory icons are much bigger than the slot. Any ideas what I may have done? Help much appreciated

     

    You also need to apply the changes to the controls.xml and styles.xml files.

     

    As you can read from the code in windows.xml it refers to controls.xml (marked in yellow)

     

     

     

    <window name="windowBackpack" width="603" height="349" panel="Center" controller="BackpackWindow" cursor_area="true" >
    	<panel name="header" height="43" depth="1" backgroundspritename="ui_game_panel_header">
    		<button depth="3" name="btnSort" style="icon32px, press, hover" pivot="center" pos="21,-21" sprite="ui_game_symbol_backpack" tooltip_key="lblSortInventory" sound="[paging_click]" />
    		<label depth="3" name="windowName" pos="42,-6" width="250" height="32" text="INVENTORY" text_key="xuiInventory" font_size="32" />
    		<label depth="2" pos="472,-8" width="100" height="28" text="{currencyamount}" color="[mediumGrey]" justify="right" />
    		<sprite depth="4" name="costIcon" sprite="ui_game_symbol_coin" size="24,24" pos="577,-10" color="[white]" foregroundlayer="true" />
    	</panel>
    	<panel name="content" width="100%" height="303" depth="0" pos="0,-46" disableautobackground="true">
    			<sprite depth="8" name="backgroundMain" sprite="menu_empty3px" pos="0,0" width="603" height="303" color="[black]" type="sliced" fillcenter="false" on_press="true" />
    			<grid depth="1" name="inventory" rows="6" cols="12" pos="3,-3" cell_width="50" cell_height="50" controller="Backpack" repeat_content="true" >
    				<[color="#FFD700"]SMX_bp_item_stack name="0"[/color]/>
    			</grid>
    	</panel>
    </window>
    

     

     

     

    When you check the code in the controls.xml you will see that it refers to styles.xml (marked with yellow)

     

     

     

    <SMX_bp_item_stack>
    	<rect controller="ItemStack" style="[color="#FFD700"]SMXBPItemStack[/color], hover" collider_scale="1.1">
    		<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="53" height="53" color="[black]" type="sliced" fillcenter="false" />	
    		<sprite depth="3" name="background" sprite="menu_empty3px" width="48" height="48" color="[darkGrey]" type="sliced" globalopacity="true" fillcenter="false"/>
    		<sprite depth="2" name="highlightOverlay" width="47" height="47" color="[darkGrey]" pos="0,0" type="sliced" globalopacity="true"/>
    
    		<texture depth="3" name="backgroundTexture" material="Materials/Transparent Colored" size="48,48" globalopacity="true"/>
    
    		<sprite depth="4" name="itemIcon" width="45" height="35" atlas="ItemIconAtlas" sprite="{itemicon}" pos="23,-18" pivot="center" foregroundlayer="true" color="{iconcolor}" />
    		<sprite depth="8" name="lockTypeIcon" width="14" height="14" sprite="" pos="2,-2" foregroundlayer="true"/>
    
    		<sprite depth="3" name="durabilityBackground" width="46" height="3" sprite="menu_empty3px" color="[darkGrey]" type="sliced" pos="1, -42" foregroundlayer="true"/>
    		<sprite depth="4" name="durability" width="46" height="3" sprite="menu_empty2px" color="[transparent]" type="filled" pos="1, -42" foregroundlayer="true"/>
    
    		<sprite depth="5" name="disabledOverlay" width="47" height="47" color="[darkGrey_half_alpha]" pos="1,-1" type="sliced" visible="false"/>
    
    		<label depth="7" name="stackValue" pos="-1,-32" width="48" height="28" text="{itemcount}" font_size="14" effect="outline" justify="center" />
    		<label depth="7" name="timer" pos="35,-38" width="45" height="24" font_size="24" justify="center" pivot="center" effect="outline" color="[beige]"/>
    		<sprite depth="9" name="cancel" sprite="ui_game_symbol_x" width="45" height="45" color="255,0,0,255" type="sliced" visible="false" foregroundlayer="true"/>
    
    		<label depth="12" name="itemName" pos="36,-35" width="0" height="0" text="" font_size="14" justify="center" overflow="resizefreely" effect="outline" pivot="center" above_soft_cursor="true"/>
    
    		<sprite depth="13" name="assembleIcon" size="18,18" sprite="ui_game_symbol_lock" visible="{isassemblelocked}" pos="14,-14" foregroundlayer="true" />
    	</rect>
    </SMX_bp_item_stack>
    

     

     

     

    All of this code works together to create the backpack.

     

    So if you already have the backpack part of the code enabled check and make sure that you have to styles.xml and controls.xml parts available also. If not, copy paste these into their respective files.

     

    controls.xml

     

     

    <SMX_bp_item_stack>
    	<rect controller="ItemStack" style="SMXBPItemStack, hover" collider_scale="1.1">
    		<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="53" height="53" color="[black]" type="sliced" fillcenter="false" />	
    		<sprite depth="3" name="background" sprite="menu_empty3px" width="48" height="48" color="[darkGrey]" type="sliced" globalopacity="true" fillcenter="false"/>
    		<sprite depth="2" name="highlightOverlay" width="47" height="47" color="[darkGrey]" pos="0,0" type="sliced" globalopacity="true"/>
    
    		<texture depth="3" name="backgroundTexture" material="Materials/Transparent Colored" size="48,48" globalopacity="true"/>
    
    		<sprite depth="4" name="itemIcon" width="45" height="35" atlas="ItemIconAtlas" sprite="{itemicon}" pos="23,-18" pivot="center" foregroundlayer="true" color="{iconcolor}" />
    		<sprite depth="8" name="lockTypeIcon" width="14" height="14" sprite="" pos="2,-2" foregroundlayer="true"/>
    
    		<sprite depth="3" name="durabilityBackground" width="46" height="3" sprite="menu_empty3px" color="[darkGrey]" type="sliced" pos="1, -42" foregroundlayer="true"/>
    		<sprite depth="4" name="durability" width="46" height="3" sprite="menu_empty2px" color="[transparent]" type="filled" pos="1, -42" foregroundlayer="true"/>
    
    		<sprite depth="5" name="disabledOverlay" width="47" height="47" color="[darkGrey_half_alpha]" pos="1,-1" type="sliced" visible="false"/>
    
    		<label depth="7" name="stackValue" pos="-1,-32" width="48" height="28" text="{itemcount}" font_size="14" effect="outline" justify="center" />
    		<label depth="7" name="timer" pos="35,-38" width="45" height="24" font_size="24" justify="center" pivot="center" effect="outline" color="[beige]"/>
    		<sprite depth="9" name="cancel" sprite="ui_game_symbol_x" width="45" height="45" color="255,0,0,255" type="sliced" visible="false" foregroundlayer="true"/>
    
    		<label depth="12" name="itemName" pos="36,-35" width="0" height="0" text="" font_size="14" justify="center" overflow="resizefreely" effect="outline" pivot="center" above_soft_cursor="true"/>
    
    		<sprite depth="13" name="assembleIcon" size="18,18" sprite="ui_game_symbol_lock" visible="{isassemblelocked}" pos="14,-14" foregroundlayer="true" />
    	</rect>
    </SMX_bp_item_stack>
    

     

     

     

    styles.xml

     

     

    <style name="SMXBPItemStack">
    	<style_entry name="select_color" value="[beige]" /> 
    	<style_entry name="press_color" value="[limeGreen]" /> 
    	<style_entry name="final_pressed_color" value="[lightGrey]" /> 
    	<style_entry name="background_color" value="[mediumGrey]" /> 
    	<style_entry name="highlight_color" value="[hoverColor]" /> 
    	<style_entry name="holding_color" value="[white]" />
    	<style_entry name="width" value="49" />
    	<style_entry name="height" value="49" />
    	<style_entry name="hover_icon_grow" value="1.5" />
    	<style_entry name="on_press" value="true" />
    	<style_entry name="sound_volume" value="0.75" />
    	<style_entry name="pickup_sound" value="[pickup_click]" />
    	<style_entry name="place_sound" value="[place_click]" />
    </style>
    

     

     

     

    Hope that helps ... was rather quick and dirty but I guess you will come back on this if you don't understand it :)

  2. YAY!!! You're the best man. That worked. What I had tried was simply dragging and dropping the Big Backpack mod over the War of the Walkers mod. This resulted in lots of red text and a frozen game at the "Loading UI" screen.

     

    Thanks for the help. Now to try it on a server.

     

    BB

     

    The assembly-csharp.dll in my package doesn't work on DS. But stallionsden have made a 72 slot dll for DS so you can use that one just fine.

  3. By the look of things Games4Kickz will stream True Survival this evening. Head over to twitter and vote on his poll to ensure that TS gets the stream spot.

     

    And make sure to tune in on twitch at 22 U.K. Time to witness the struggle. Last time was hilarious, but he was unprepared then...what will happen this time?

  4. Hi, I like playing this mod, but inventory management is a nightmare. Are there any bigger backpack mods that work with this mod? I've tried Valmod's Bigger Backpack Mod and Sirillion's 72 slot bag. Neither worked.

    Any ideas?

     

    Thanks, B

     

    My 72 slot should work for you since his UI is based on my files, unless he changes a lot. What was the issue you ran into?

     

    Try opening his windows.xml with notepad++ then search for wbackp. That will take you to the correct section, then follow the instructions within to disable the standard backpack UI and enable the 72 slot UI.

     

    Then copy the assembly-csharp.dll from my mod and disable EAC and you should have a bigger bag.

     

    If you hate the new bob and sway you need to download the assembly from the sgbb marked file instead where I turn the sway down significantly.

     

    Hope that helps.

     

    Please be aware that sometimes it looks like the mod ain't working when using it on an existing save. It fills to 32 and stops. If that happens remove an item and then it should work.

  5. Bet there was a lot of ballz being thrown around lol.

     

    It was actually very funny. I would advice all that are interested in this mod to have a look at the vod of it.

  6. - The black 'quest' smear stays on HUD when there is no quest active, I thought Sirillion said he had fixed it.

     

    Edit windows.xml and search for SMXQuestTracker

    Change the visible="{ShowQuest}" part to visible="{showquest}" and the smear goes away as intended.

  7. Whats a good way of checking mod was installed correctly?

     

    I cant see any of the new tools/item aka burn barrel.

     

    Also didnt get a dialog asking profession on join

     

    Use the mod launcher by SphereII, doesn't get much easier than that.

  8. I've made changes to the buff frames in my next release. You can now change between 4 buff frames; normal frames with big and small icons and improved frames with big and small icons.

     

    I've also changed the color of the level and created a circular xp bar all while removing the existing top left frame.

     

    The body and map temp will both be in the lower part of the UI in the next release, I just need to decide where I want to put them.

     

    Sadly I have very limited time to work on this when I am here so I will try and get stuff done next week when I am back home.

  9. Thank you, I still have 5 days left of my rotation so I wouldn't have been able to download to check until Monday.

     

    I hope it was as easy to integrate as I want it to be.

  10. Sounds like a great incentive to force people to do the quest.

     

    It would also be awesome to see quests that are timed and if you fail them you get infected.

×
×
  • Create New...