.Int file tutorial needed

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
Int files are used to notify the game of objects it should concern about. (mutators, weapons, gametypes, player models, etc.)
They can also be used to localize your code. (translate it into other languages)

Tell us, what you have in mind and there's gonna be an answer soon.:)
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
Create a new file and name it <Package name of your mutator>.int, then open it in a text editor.:p

The first line should be [Public].
The next lines contain
Code:
[b]Object=(Name=[/b][i]PackageName.ClassName[/i][b],Class=Class,MetaClass=Engine.Mutator,Description="[/b][i]Mutator name,Mutator description[/i][b]")[/b]

Look at Botpack.int, there are several mutator declarations in it.
 

EasyRaider

Crazy coder
Sep 21, 2001
74
0
0
43
Norway
Now that the subject has been brought up, I remember that I don't know how to make a weapon show up in the prioritize weapons list. I thought you could just do it with an .int file, but it didn't seem to work. And I copied from Botpack.int, too.

It's not really important, but help will be appreciated.
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
MetaClass is a class your object extends from. It is used in the GetNextIntDesc() function used by the mutator list window and some other lists to specify a certain type of object to look for. For mutators it must be "Engine.Mutator" for the weapons in UT's priority list it's "Botpack.TournamentWeapon".

The problem with the priority list is that it checks whether the weapon's class begins with "Botpack.", so the only weapon you can add to that list would be the InstaGib Shock Rifle which would show up as another shock rifle in the list.

If you want to customize all weapons you have in you current priority list (could be up to 50, but they are not shown in UT's list), use my Advanced Priority List and set up an Int file for your weapons in the same way as in Botpack.int. I have included a weapon list for Chaos UT as an example.
 

Hunz

...aka [A|K]Leviathan, mkay?
Jan 7, 2002
302
0
0
Jail
www.arschkeKse.de.vu
And how to initialize gametypes?
I wrote the code for the gametype and typed the gametype-specific lines in the *.int, but there is only a clone of 'tournament deathmatch' in the list.
What have i done wrong or missed?