boyesjs03 Posted April 17, 2013 Author Share Posted April 17, 2013 Bit stuck on this one, I spent 20 minutes yesterday trying to work it out but I seem to be missing something. Could someone please explain fully how to add an option to the Config.ini file? Link to comment Share on other sites More sharing options...
damian666 Posted April 17, 2013 Share Posted April 17, 2013 checked these subs?```Public Sub SaveOptions() PutVar App.Path & "\data\options.ini", "OPTIONS", "Game_Name", Options.Game_Name PutVar App.Path & "\data\options.ini", "OPTIONS", "Port", STR(Options.Port) PutVar App.Path & "\data\options.ini", "OPTIONS", "MOTD", Options.MOTD PutVar App.Path & "\data\options.ini", "OPTIONS", "Website", Options.WebsiteEnd SubPublic Sub LoadOptions() Options.Game_Name = GetVar(App.Path & "\data\options.ini", "OPTIONS", "Game_Name") Options.Port = GetVar(App.Path & "\data\options.ini", "OPTIONS", "Port") Options.MOTD = GetVar(App.Path & "\data\options.ini", "OPTIONS", "MOTD") Options.Website = GetVar(App.Path & "\data\options.ini", "OPTIONS", "Website")End Sub``` Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 17, 2013 Author Share Posted April 17, 2013 Yeah added a resolution option in but says I havnt defined the resolution option. Link to comment Share on other sites More sharing options...
damian666 Posted April 17, 2013 Share Posted April 17, 2013 options are defined in the optionsrec in modtypes server side.```Public Options As OptionsRecPrivate Type OptionsRec Game_Name As String MOTD As String Port As Long Website As StringEnd Type```but would a res option not go clientside?that file is called config.ini i think.same principle applies though ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)```' optionsPublic Options As OptionsRec' Type recsPrivate Type OptionsRec Game_Name As String SavePass As Byte Password As String * NAME_LENGTH Username As String * ACCOUNT_LENGTH IP As String Port As Long MenuMusic As String Music As Byte Sound As Byte Debug As ByteEnd Type``` Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 17, 2013 Author Share Posted April 17, 2013 Derp, I meant the config.ini xD. Is it still defined in ModTypes? Link to comment Share on other sites More sharing options...
damian666 Posted April 17, 2013 Share Posted April 17, 2013 yes, same stuff, just other options ^^ Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 17, 2013 Author Share Posted April 17, 2013 And all handled client side yeah? Link to comment Share on other sites More sharing options...
damian666 Posted April 17, 2013 Share Posted April 17, 2013 yes, client options are handled clientside ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 17, 2013 Author Share Posted April 17, 2013 > yes, client options are handled clientside ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)Self Explanitory ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Thanks for your help, I was just missing where to define it :-) Link to comment Share on other sites More sharing options...
damian666 Posted April 17, 2013 Share Posted April 17, 2013 np mate ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now