PDA

View Full Version : Writing an .ini file


blueshogun96
September 4th, 2004, 17:53
Let's say, I want to write an .ini file for an anonomys game. What exactly would I have to include in that ini file?

MaZa
September 4th, 2004, 18:25
Thats quite rounded up question. :???: Depends what that game wants from that INI file. Basically INI file is just a text file that can be written with notepad or similar.

PS. Who is that babe on your avatar? ;) :lol:

Kane
September 5th, 2004, 00:07
It's down to the game. If the game doesn't look at the ini file it's a bit pointless, and a game which does look at an ini file will almost certainly already have one, nad you can reference from that.

>PS. Who is that babe on your avatar? ;) :lol:

It's Faye Valentine from Cowboy Bebop

blueshogun96
September 9th, 2004, 17:02
>PS. Who is that babe on your avatar? ;) :lol:

It's Faye Valentine from Cowboy Bebop
Yep, it's Faye Valentine. I thought instead of calling myself a total retard (which I can be at times) I wanted to say something a bit more positive. Imagine if she was REAL :thumb:

Anyway, I wanted to see if I could contribute by getting Bad Boys 2 to work. I was feeling a bit mischivous. I tried to make an INI file for it, but so far, I havent gotten it to work, yet :thumb: So far, I got the white screen with the FPS counter on it.

wile
September 10th, 2004, 00:42
Why dont you show us the INI file? :D

blueshogun96
September 10th, 2004, 15:35
Why dont you show us the INI file? :D
When I get a chance I will. I'm usually doing all of my posts from college

blueshogun96
September 11th, 2004, 01:38
Ok... here's what I got so far on my ini file so far. So far it's not even close to being done. I'm trying to make sure I got the main function right, so far Xeon can't find it. I used my IDA pro to dissasemble it and tried to do what I could.

_SF_
September 11th, 2004, 04:41
You have the right idea, however it is somewhat more complicated than that. I actually attempt to generate as much as possible of the INI file automatically using a function scanner program. Basically it generates signatures from XDK library files and uses them to search for functions in the XBE file. However since I don't have all of the XDK's I have to search for a lot of the functions by hand. If you want however I might be able to release the scanning program.

Also the version of Xeon that was released before is very outdated now. You should probably wait until I have the new version ready before trying to get games to run.

blueshogun96
September 13th, 2004, 18:23
You have the right idea, however it is somewhat more complicated than that. I actually attempt to generate as much as possible of the INI file automatically using a function scanner program. Basically it generates signatures from XDK library files and uses them to search for functions in the XBE file. However since I don't have all of the XDK's I have to search for a lot of the functions by hand. If you want however I might be able to release the scanning program.

Also the version of Xeon that was released before is very outdated now. You should probably wait until I have the new version ready before trying to get games to run.
:bow: I'm glad to see that you are up and running _SF_. :bow: It would be great if you could release the scanning program. thanks, keep ^ the good work :thumb:

Anyway, I forgot to mention that I tried to use IDA pro to find out the location of the main function.

proger
September 13th, 2004, 22:47
I will help look for the main funtion with you.

Yea... IDA gives you weird outputs (not alot like real c/c++)
and it makes it harder to find things like that.

blueshogun96
September 13th, 2004, 23:20
I will help look for the main funtion with you.

Yea... IDA gives you weird outputs (not alot like real c/c++)
and it makes it harder to find things like that.
Thanx, i apreciate the help.

_SF_
September 14th, 2004, 05:36
:bow: I'm glad to see that you are up and running _SF_. :bow: It would be great if you could release the scanning program. thanks, keep ^ the good work :thumb:

Anyway, I forgot to mention that I tried to use IDA pro to find out the location of the main function.
I'd have to see about it. The program is very primitive and doesn't even have a GUI currently. Also it's dependent on the DUMPBIN tool that comes with Visual Studio.

blueshogun96
September 14th, 2004, 17:27
I'd have to see about it. The program is very primitive and doesn't even have a GUI currently. Also it's dependent on the DUMPBIN tool that comes with Visual Studio.
VS 6 or 7(.net)?

_SF_
September 15th, 2004, 00:08
VS 6 or 7(.net)?
I use VS.net 2003, though it might work with the previous ones. It depends on the format of the library files.

proger
September 15th, 2004, 00:17
Wow, _SF_... you've been around alot lately!

zomby
September 16th, 2004, 15:47
Still, it would be nice if you could make this tool available to us. No matter how primitive it is.

proger
October 20th, 2004, 05:30
Shouldnt you change HaloHack=false, you probally should change it to BadBoys2hack=false or something...

blueshogun96
October 26th, 2004, 20:55
Shouldnt you change HaloHack=false, you probally should change it to BadBoys2hack=false or something...
Good question, not sure but I think it should stay at halohack because halo is not the target game here.

proger
January 26th, 2005, 02:36
Looking at it closer, cxbx logs and xeon inis are amazing similar
For example:
CXBX:
Emu (0x7BC): 0x0009CED0 -> EmuIDirect3DDevice8_SetRenderState_Simple
Xeon:
D3DDevice_SetRenderState_Simple=1820A0

I dont think the one from cxbx was halo (actually, im not sure what it is from at all, but im just making a point)
I don't know if this is useful or not, but its interesting none the less. ;)
And mods, try not to get mad at me for bringing back this thread.

blueshogun96
January 26th, 2005, 22:56
are you refering to the .ini? In that case, no it's the badboys2

proger
January 27th, 2005, 20:29
I was refering to the snip out of the cxbx log file, the snip for xeon is from the halo ini.