fodev.net

Other => FOnline:2238 Forum => Archives => Tools and Modifications => Topic started by: Atom on May 15, 2010, 11:25:08 pm

Title: Interface modders: changes in .ini options
Post by: Atom on May 15, 2010, 11:25:08 pm
Until a proper changelog shows up, let it be written here that the following changes were done to .ini option names:

Code: [Select]
IntBObj* renamed to IntBItem*
SplitWObj renamed to SplitWItem
TimerWObj renamed to TimerWItem

Most of the interface mods would require an update to meet the new specifications.
Title: Re: Interface modders: changes in .ini options
Post by: Graf on May 16, 2010, 10:02:40 am
Just a little addition. You probably forgot to mention about one more change in .ini
IntBObjPicDown renamed to IntBItemPicDown
Title: Re: Interface modders: changes in .ini options
Post by: Berko on May 16, 2010, 02:36:59 pm
I think it's why he wrote IntBObj* (asterisk can be replace by everything) :)
Title: Re: Interface modders: changes in .ini options
Post by: lapatmester on May 17, 2010, 07:41:22 pm
Where can I read more about interface modding? I want to create my own interface. I figured out the meaning of some commands in the ini file, but I need to know more...
Title: Re: Interface modders: changes in .ini options
Post by: Stachi on May 17, 2010, 10:31:45 pm
Do like me. Download 2-3 interfaces and see what is doing what :) I made my own interface like this.
Title: Re: Interface modders: changes in .ini options
Post by: Atom on May 29, 2010, 11:20:47 am
Following ini keys were added
Code: [Select]
;===============2238-specific
BarterFilter0=47 326 71 350
BarterFilter1=75 326 99 350
BarterFilter2=103 326 127 350
BarterFilter3=131 326 155 350
BarterFilter4=159 326 183 350
BarterFilter5=454 326 478 350
BarterFilter6=482 326 506 350
BarterFilter7=510 326 534 350
BarterFilter8=538 326 562 350
BarterFilter9=566 326 590 350

They are inside faction*.ini files, they mean x, y position of the respective barter filter button, relative to the position of the main barter screen. Consult this with the contents of faction008.dat too.
Title: Re: Interface modders: changes in .ini options
Post by: Fauqs on June 02, 2010, 10:07:28 am
With the code Atom posted, I was able to easily alter the custom interface of the transparent interface mod. I just took a screenshot of the barter menu without any mods active, put the filter bar underneath the old barter-medium.png image, saved the new image with the old name, and added the code into the interface ini file.

Since it's basically the same interface, just made transparent, it shouldn't take too long for the creators of it to add these changes as well. (Or you could change it if you're impatient like me)

If there's a mod that changes the barter menu image, you'll need to play around with the numbers in order to get the new buttons functioning correctly.
Title: Re: Interface modders: changes in .ini options
Post by: Haraldx on June 02, 2010, 08:35:08 pm
Heh, finaly got my 1024x(something) interface work properly, thanks guys.
Title: Re: Interface modders: changes in .ini options
Post by: kraskish on June 08, 2010, 05:53:21 pm
Cant get it to work, is it possible? I lack faction.ini that someone mentioned and I also added this barter filters but to default.ini but didnt work. I dont have buttons and I dont see weapon and cant change the attack
Title: Re: Interface modders: changes in .ini options
Post by: kraskish on June 29, 2010, 10:25:20 am
Following ini keys were added
Code: [Select]
;===============2238-specific
BarterFilter0=47 326 71 350
BarterFilter1=75 326 99 350
BarterFilter2=103 326 127 350
BarterFilter3=131 326 155 350
BarterFilter4=159 326 183 350
BarterFilter5=454 326 478 350
BarterFilter6=482 326 506 350
BarterFilter7=510 326 534 350
BarterFilter8=538 326 562 350
BarterFilter9=566 326 590 350

They are inside faction*.ini files, they mean x, y position of the respective barter filter button, relative to the position of the main barter screen. Consult this with the contents of faction008.dat too.

I pasted it to default.ini and previously changed the other IntBob and Split functions and I still dont have barter filters...
Title: Re: Interface modders: changes in .ini options
Post by: Resp on June 29, 2010, 10:04:26 pm
try dont  use transparent skin
or try  that http://www.megaupload.com/?d=ALTJF0Y8
Title: Re: Interface modders: changes in .ini options
Post by: kraskish on June 30, 2010, 06:33:34 pm
try dont  use transparent skin
or try  that http://www.megaupload.com/?d=ALTJF0Y8

Wow yeah, that works, swwwweeeeeeeet. :* Thanks very much. One question what is "Aiming" transparency responsible for?
Title: Re: Interface modders: changes in .ini options
Post by: yoz on September 02, 2010, 08:18:02 pm
I tried to fix the post-futuristic interlace with the changes posted here, but it didn't work.
Title: Re: Interface modders: changes in .ini options
Post by: Atom on September 03, 2010, 02:00:19 am
The latest changes in the ini specification, on the example of default.ini: http://pastebin.com/diff.php?i=sc2m4Te9

The diff printout should be easy to understand. Red lines (with -) are deleted ones, blue ones (with +) are ones added. They are grouped in a way so that's it's easily seen which key name was replaced, and by what. A careful search&replace should be enough to fix all of the custom interfaces.

2238-specific keys are not listed, as they remained unchanged.
Title: Re: Interface modders: changes in .ini options
Post by: yoz on September 03, 2010, 04:15:21 am
Nicely organized example ^^^

I fixed my interface with it.
Title: Re: Interface modders: changes in .ini options
Post by: Haraldx on September 04, 2010, 11:49:56 am
Thank you very much! Fixed the interface and now everything is working perfectly, thank you!
Title: Re: Interface modders: changes in .ini options
Post by: yoz on September 06, 2010, 11:28:15 pm
The link is no longer working :(
Title: Re: Interface modders: changes in .ini options
Post by: Ned Logan on September 07, 2010, 01:33:38 am
It seems that this option doesn't seem to work as before:
IntItem=445 63 562 113

The item slot is still huge like in the default interface. Is this fixable? By me, 2238 team or fonline team?

(http://imgur.com/1HkkJl.jpg) (http://imgur.com/1HkkJ.jpg)
Title: Re: Interface modders: changes in .ini options
Post by: Stachi on September 07, 2010, 12:30:16 pm
I got same thing. Weapon is in same place like default(my interface starts at 0 point(0,0) and this is why i got it on top of screen)

(http://img62.imageshack.us/img62/551/screen07092010122349.jpg)
Title: Re: Interface modders: changes in .ini options
Post by: Ned Logan on September 08, 2010, 03:16:08 am
Stachi: the bug is in our mods - rename your default*.ini files to faction*.ini
Title: Re: Interface modders: changes in .ini options
Post by: Atom on November 05, 2010, 04:11:35 am
The following keys were added upon the last update, their meaning should be clear:

Code: [Select]
RadioMainPic=radio.png
RadioMain=0 0 330 201
RadioRefresh=230 10 262 53
RadioRefreshPicDn=radio_switch.png
RadioChannel=152 18 220 31
RadioBroadcastSend=18 86 67 112
RadioBroadcastSendPicDn=radio_off.png
RadioBroadcastRecv=18 160 67 186
RadioBroadcastRecvPicDn=radio_off.png
RadioBroadcastSendDial=152 64 310 117
RadioBroadcastSendDialPic1=radio_dial1.png
RadioBroadcastSendDialPic2=radio_dial2.png
RadioBroadcastSendDialPic3=radio_dial3.png
RadioBroadcastSendDialPic4=radio_dial4.png
RadioBroadcastSendDialPic5=radio_dial5.png
RadioBroadcastRecvDial=152 138 310 191
RadioBroadcastRecvDialPic1=radio_dial1.png
RadioBroadcastRecvDialPic2=radio_dial2.png
RadioBroadcastRecvDialPic3=radio_dial3.png
RadioBroadcastRecvDialPic4=radio_dial4.png
RadioBroadcastRecvDialPic5=radio_dial5.png
Title: Re: Interface modders: changes in .ini options
Post by: Hololasima on November 22, 2010, 11:05:27 am
Hello. I want to know if there is any option for change "folow" window ? I know that its possible but problem is that this window is for "folow" but its also for "encouter" window. As you know at "encouter" window are different buttons than as they are in "folow" window.

Can you somehow divide it ? It will be better for modding. Thanks
Title: Re: Interface modders: changes in .ini options
Post by: skejwen on November 22, 2010, 11:30:44 am
Hello. I want to know if there is any option for change "folow" window ? I know that its possible but problem is that this window is for "folow" but its also for "encouter" window. As you know at "encouter" window are different buttons than as they are in "folow" window.

Can you somehow divide it ? It will be better for modding. Thanks

Try talking to cvet about it :)
Title: Re: Interface modders: changes in .ini options
Post by: Graf on November 22, 2010, 10:14:20 pm
Hello. I want to know if there is any option for change "folow" window ? I know that its possible but problem is that this window is for "folow" but its also for "encouter" window. As you know at "encouter" window are different buttons than as they are in "folow" window.

Can you somehow divide it ? It will be better for modding. Thanks
yeah, you can create a topic about that here (http://translate.google.ru/translate?js=n&prev=_t&hl=ru&ie=UTF-8&layout=2&eotf=1&sl=ru&tl=en&u=http%3A%2F%2Fwww.fonline.ru%2Fforum%2Fforumdisplay.php%3Ff%3D45) (on english)
Title: Re: Interface modders: changes in .ini options
Post by: Atom on January 26, 2011, 03:55:28 am
As of now (today's update), settings for different resolutions do not require separate files (such as faction1024x768.ini) and entries in resolutions.lst. Instead, all keys for different resolutions are in faction.ini, and keys for different resolutions require "resolution x y" line preceding them.
Example:
Code: [Select]
#default keys start
key1=100
key2=200
...
#default keys end

resolution 800 600

# 800x600 keys start
key1=150
key2=220
...
# 800x600 keys end

resolution 1024 768

# 1024x768 keys start
key1=1000
key2=2200
...
# 1024x768 keys end

See current ini file (in factions002.zip) for reference.
Title: Re: Interface modders: changes in .ini options
Post by: Wipe on March 02, 2011, 08:05:45 am
New setting for FOnline2238.cfg, highly connected with custom interfaces: CustomIni (http://fo2238.fodev.net/wiki/2238#CustomIni).
Title: Re: Interface modders: changes in .ini options
Post by: Mayck on December 31, 2012, 12:15:06 am
The following keys were added upon the last update, used for space indicator in containers:

Code: [Select]
PupVolumeInd=270 160 395 184
PupVolumeIndText=270 159 395 184
PupVolumeIndBackPic=volume_indicator.png