Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EndMutator for Jcoop4?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
swagman



Joined: 17 Jan 2005
Posts: 36

PostPosted: Sat Jan 22, 2005 1:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Zombie



Joined: 27 Jan 2004
Posts: 295

PostPosted: Sat Jan 22, 2005 1:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
swagman



Joined: 17 Jan 2005
Posts: 36

PostPosted: Sat Jan 22, 2005 4:35 am    Post subject: Reply with quote

Thanks a bunch zombie ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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