|
Hyper.nl Unreal Services The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
|
View previous topic :: View next topic |
Author |
Message |
swagman
Joined: 17 Jan 2005 Posts: 36
|
Posted: Sat Jan 22, 2005 1:17 am Post subject: |
|
|
I am currently trying to learn how to make things configerable by the advanced options window or INI. I'm starting work on the next version of AFZendmut mod. I'm planning to add customisable end enabled messages and customisable map-times. But I have no idea how to make things configureable by the advanced options menu. Help anyone? |
|
Back to top |
|
|
Zombie
Joined: 27 Jan 2004 Posts: 295
|
Posted: Sat Jan 22, 2005 1:52 am Post subject: |
|
|
Having it save to normal Unreal INI:
Code: | class AFZendmut expands Mutator config; |
Having it save to a new custom INI:
Code: | class AFZendmut expands Mutator config(AFZendmut); |
A basic INT file named after its package:
Code: | [Public]
Object=(Name=AFZendmut.AFZendmut,Class=Class,MetaClass=Engine.Mutator,Description="AFZEndMutator")
Preferences=(Caption="AFZEndMutator",Parent="Advanced Options",Class=AFZendmut.AFZendmut,Immediate=True,Category=AFZendmut) |
When you write your global variables or structs be sure to specify them as 'config' types using the 'Category' name within parenth. Although since this would be a small mod, you could just manualy write in the map times to the INT file while using 'localized' variable types to prevent less INI clutter.
EX:
Code: | var(AFZendmut) config string EndOnMsg; // entry stored in INI
OR
var localized string EndOnMsg; // value manualy written in INT file |
Also, I would consider running these mods as a ServerActor unless you make use of CheckReplacement for a normal mutator. No point in loading it in the command-line if it serves no extra functionality. An initiate state by itself would be automatic once the class spawned running as a ServerActor. When I wrote that simple uscript structure (structure like these end mutes) for Hyper's EUSB I made it extend 'Mutator' in case I had to use CheckReplacement for anything. Since it didn't it doesn't need to run from cmd-line either.
Be sure to read about wiki config stuff to understand some thgins I mentioned: http://wiki.beyondunreal.com/wiki/Config_Vars_And_.Ini_Files
Creating an INT config file: http://wiki.beyondunreal.com/wiki/Create_An_INT_File
Variable syntax: http://wiki.beyondunreal.com/wiki/Variable_Syntax
-Zombie |
|
Back to top |
|
|
swagman
Joined: 17 Jan 2005 Posts: 36
|
Posted: Sat Jan 22, 2005 4:35 am Post subject: |
|
|
Thanks a bunch zombie ;) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|