The International Simutrans Forum

PakSets and Customization => General Resources and Tools => PakSet Maintainers and Artists Corner => Topic started by: Spartanis on July 07, 2012, 03:55:52 AM

Title: Confused: Tool Icons
Post by: Spartanis on July 07, 2012, 03:55:52 AM
I created a new set of SLOPE tools icons and I pak'ed it ok into menu.SlopeTools.pak

I copied the file to the relevant pak directory, but it didnt show up in the game (still using the original slope tools icon).


I noticed that there is a series of menu.*.pak files but im at lost to what they represent, and what they hold. Makeobj "list" shows what the file contains, but it state error and nothing is listed.


Tiki Wiki doesnt seem to help/explain much at all. Unless there is a page there, but not listed/linked to the relevant page in order to find it.

Can someone kindly explain to me how to incorperate my new menu.SlopeTools.pak into the game?
Title: Re: Confused: Tool Icons
Post by: greenling on July 07, 2012, 05:44:45 AM
Spartanis what want you exchange in the slopemenu?
Title: Re: Confused: Tool Icons
Post by: Spartanis on July 07, 2012, 06:23:55 AM
From the original slope tool images to my created slope tool images


(http://a7.sphotos.ak.fbcdn.net/hphotos-ak-snc6/282621_10151090848796241_1442028460_n.jpg)
The above image i have created, paked into menu.SlopeTools.pak


Note: This pakset will be relevant to --> Kierongreen's r5773 Double Heights patch
Title: Re: Confused: Tool Icons
Post by: Vonjo on July 07, 2012, 07:15:06 AM
Try to change the file name to z.menu.SlopeTools.pak
Title: Re: Confused: Tool Icons
Post by: Spartanis on July 07, 2012, 07:52:49 AM
Quote from: Vonjo on July 07, 2012, 07:15:06 AM
Try to change the file name to z.menu.SlopeTools.pak

Did that, no effect. Was I suppose to edit something in Menuconf file? .... Particularly the SLOPES section of the file?
Title: Re: Confused: Tool Icons
Post by: greenling on July 07, 2012, 07:59:44 AM
@Vonjo
your tip it not usefull Simutrans will be strikes then it find duplicate Pakfilesparts.
@Spartanis
I have look on your new buttens and it possible to build in the Buttens.
But that need time then the menustruktur and the menuconf.tab are the heavy problems.
And we must be take with the combiantion of Kierongreen's r5773 Double Heights patch.
Title: Re: Confused: Tool Icons
Post by: Dwachs on July 07, 2012, 08:08:08 AM
menu.SlopeTools does not have any special meaning (like it used to have before some 99.x versions).

You have add references to these icons to GeneralTools. The image number in GeneralTools do not have a special meaning, even if the wiki states otherwise. The image numbers are referenced in menuconf.tab.
Title: Re: Confused: Tool Icons
Post by: greenling on July 07, 2012, 08:16:31 AM
Dwachs
the position of Menubuttons and Icons can you over the Datfiles and the menuconf.tab configgurate.
Title: Re: Confused: Tool Icons
Post by: kierongreen on July 07, 2012, 08:45:33 AM
You will need to edit dat file for menus (in pak128.Britain this is gui64/new_menus.dat - numbers may be different in other paks but hopefully you will get the idea):
....
Obj=menu
name=BarTools
copyright=none
...
# slope tool icons
Image[10]=> menu_buttons.0.9
Image[11]=> menu_buttons.0.10
Image[12]=> menu_buttons.0.11
Image[13]=> menu_buttons.0.12
Image[14]=> menu_buttons.1.11
Image[15]=> menu_buttons.1.10
....

then add:
Image[27]=> menu_buttons.0.9
Image[28]=> menu_buttons.0.10
Image[29]=> menu_buttons.0.11
Image[30]=> menu_buttons.0.12

(changing the menu_buttons.y.x for your new images of course)

the Image[number] here is then referenced in menuconf.tab - notice 10, 11, 12, 13 below:

toolbar[1][2]=general_tool[4],10,,36 #southslope
toolbar[1][3]=general_tool[4],11,,4 #northslope
toolbar[1][4]=general_tool[4],12,,12 #westslope
toolbar[1][5]=general_tool[4],13,,28 #eastslope

So for the double slope icons you will have to change these to 27, 28, 29 and 30
Title: Re: Confused: Tool Icons
Post by: Spartanis on July 07, 2012, 09:20:27 AM
kierongreen...

yer a bluddy legend!!! The way you explained.. makes frikkn sense!!!..

Can i kiss yer toes? :P