Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Matrix1Util plug in and look ups

Author
Message
Maindric
16
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 14th Jan 2012 11:55
Ok, basically I am working on a program that will utilize .ini files to set settings, and I am using Matrix1Util plugin for that, but I do not quite get how to use the commands, can anyone assist me with same source code?

I will experiment, but I dunno where to start...

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 14th Jan 2012 16:37
download the example I wrote for you:
Maindric
16
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 15th Jan 2012 05:12
Exactly what I wanted, thank you so much sir.

I tried experimenting, but my limited knowledge made it difficult.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 15th Jan 2012 06:56
pleasure
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 15th Jan 2012 18:39
Hmmmmm very interesting, I didn't know these commands existed (maybe i'm running an outdated version of matrix1's?)

Coincidently I just recently wrote my own which seems to function almost identically with 1 exception
I call a function i.e.



The difference being the last parameter. My ini files are set out much the same as the posted example, with a heading and then one or more values listed under them in a single line, i.e.

[PLAYER]
Start.Pos=50,100,90
Start.Weapon=assault rifle

The function will read and seperate these values by a comma, and return the relevant one. 1 and 0 mean the same thing which is the first parameter. Anything higher returns the relevant value, or 0 if beyond it's scope. Spaces are supported. ; can be used as an optional line break for commenting on the same line

If you are interested in the function I could post it up

Login to post a reply

Server time is: 2026-07-10 15:52:10
Your offset time is: 2026-07-10 15:52:10