Forum Jump :

Author Message


Posts: 91
Rank:


Level: Member

Country: us
Location: Massachusetts
Occupation:
Age: 46
In-game name: specterm

 
#1 Posted at 2009-07-21 01:21        
     
Can someone tell me how to make a time limit on my server?


Author Message


Posts: 91
Rank:


Level: Member

Country: us
Location: Massachusetts
Occupation:
Age: 46
In-game name: specterm

 
#2 Posted at 2009-07-21 04:40        
     
this game is the most complicated piece of crap I have ever seen in my life. dont get me wrong. the game looks and plays awesome but cmon. seriously. 3hours to try to learn how to have a map play for a set period of time. This is rediculous.

I mean WTF is this S***T

titleParam1 = "Time limit:";
valuesParam1[] = {10000, 300, 600, 900, 1200, 1500, 1800, 2100, 3600, 7200};
defValueParam1 = 1800;
textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min", "20 min", "25 min",
"30 min", "35 min", "60 min", "120 min", };
titleParam2 = "Score to win:";
valuesParam2[] = {10000, 5, 7, 10, 15, 20, 25, 30};
defValueParam2 = 5;
textsParam2[] = {"Unlimited", 5, 7, 10, 15, 20, 25, 30};

Gimme a freaking break. and then I have set up triggers to display the appropriate amount of minutes left and THEN!! after all that.. it doesnt even freaking work. YOU HAVE GOT TO BE KIDDING ME!!

COD4 code
roundtime=10; DONE!!


Advertisement


Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age: 50
In-game name:

 
#3 Posted at 2009-07-21 06:41        
     
Hey Spec,

Many can understand your frustration, especially the fact that some map makers/gamers like yourself don't have much of an ARMA background. I know because I've been there, but trust me - calm down a bit and get to know some nice folks here and at other sites and you'll surely get the help you need. I wish it was easy, but you have to look at it this way. You purchased a platform (ARMA) and now, to structure good missions you need to learn the programming language so that decent missions can be coded. Once you've made your 1st map and like it, you can take that info and duplicate it in different areas and have fun.

ARMA and ARMA 2, OFP and OFP 2 are games that are mostly designed for programmers/coders to spend time to structure simulated missions. The proper method to code time limits would be with a set of parameters and score limit. You could force a timer in the game using some "sleep logic", but set a goal to learn how parameters can be used.

There are tools called CPBO, UNRAP, and other Plugins (go here http://www.kegetys.net/arma/ - and look for the ARMA Tools or search for the word cpbo and download the tool in that area of the webpage) that you can use to take any map and extract the components to help you understand how thee are written. It creates a folder with all the components that make up a map. You basically open the .sqf and .sqs files (In Notepad or other useful editor) to see how they are written. Then you see what the description, init files, etc. look like and how they call the scripts. Check out some CTF missions and see how they use the Score/Time Limit parameters.

Once you look at how a map is coded you will start to see how a program (mission) is created and over the next few months (and more patience on your part, lol) you will see that for those who are pros at this, this is a very good simulator mission editor. If I had more time I'd definitly help. I've been working 17 hour days with work and my yard so its a hit or miss with me.

Hope this helps bud. Keep on keepin on...


Author Message


Posts: 91
Rank:


Level: Member

Country: us
Location: Massachusetts
Occupation:
Age: 46
In-game name: specterm

 
#4 Posted at 2009-07-21 12:44        
     
Hi, I would like my mission to end after a specified amount of time. I found this info to add to the xmt

titleParam1 = "Time limit:";
valuesParam1[] = {10000, 300, 600, 900, 1200, 1500, 1800, 2100, 3600, 7200};
defValueParam1 = 1800;
textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min", "20 min", "25 min",
"30 min", "35 min", "60 min", "120 min", };

Problem is... the mission doesn't end.

I added this trigger but it still doesnt work.
http://i830.photobucket.com/albums/zz223/SpecterM/endmissiontrigger.jpg

Can someone help me? My skill level is NOOB.

This post was edited by SpecterM (2009-07-21 18:59, ago)


Author Message


Posts: 106
Rank:


Level: Member

Country: us
Location: Behind you, check. I'll be there.
Occupation: Future U.S.M.C scout/sniper
Age:
In-game name:

 
#5 Posted at 2009-07-29 17:17        
     
endofmission=true
why not just put type->End1?
it seems easier.


If you want a countdown then im not sure how to help you there. However if you want to just put a hint or something every 30 mins saying something like (Assuming you want it 3 hours) "2 hours and 30 mins left" then 2 hours left. Etc Etcc.
To do that then put a trigger covering the whole mission area,on the on act put
hint "2 hours left 30 min. left"
then make another one that activates 30 mins later saying same thing only 30 minutes shorter. or put some time in it and make it every 15 or w/e time you want. At the end make the type "End".

Hope this helps a little bit.

This post was edited by Sir Dick of Arc (2009-07-29 17:26, ago)

NO MATTER WHAT SPECIAL FORCES GROUP, S.A.S, Marine Force Recon, U.S. Delta, U.S. Rangers, the guy with a full blown beard and mustache that looks like a crazy old guy with a rifle is ALWAYS the most Bad Ass. Period.

Author Message


Posts: 208
Rank:


Level: Member

Country: us
Location: U.S.
Occupation: U.S. Army E-3 PFC MOS:92G
Age: 26
In-game name: BOB

 
#6 Posted at 2009-07-30 03:07        
     
you could just make a tiny script...
name it init.sqs and put this code in it

_timeleft = param1
if (param1==10000) then {exit} else {}
~_timeleft
endofmission=true

no need to activate the script the init.sqs is automaticly activated when the game starts


if you want a hint telling you how much time is left hten change it to this

_timeleft = param1
if (param1==10000) then {exit} else {}
[] exec "Timer.sqs"
~_timeleft
endofmission=true

make an script file and name it timer.sqs
and put this in
_timeleft = param1
_timeleft2 = _timeleft / 60
hint format ["%1 Minutes Remaining", _timeleft2]
#start
~300
_timeleft = _timeleft - 300
if (_timeleft==0) then {goto "end"}
_timeleft2 = _timeleft / 60
hint format ["%1 Minutes Remaining", _timeleft2]
goto "start"
#end

exit


im not sure this works so let me test it real quick

This post was edited by taco3866521 (2009-07-30 03:25, ago)

Played this game as a child, best times of my life.

Author Message


Posts: 106
Rank:


Level: Member

Country: us
Location: Behind you, check. I'll be there.
Occupation: Future U.S.M.C scout/sniper
Age:
In-game name:

 
#7 Posted at 2009-07-30 03:09        
     
Yeah that beats the hell outa my plan lol

NO MATTER WHAT SPECIAL FORCES GROUP, S.A.S, Marine Force Recon, U.S. Delta, U.S. Rangers, the guy with a full blown beard and mustache that looks like a crazy old guy with a rifle is ALWAYS the most Bad Ass. Period.

Author Message


Posts: 208
Rank:


Level: Member

Country: us
Location: U.S.
Occupation: U.S. Army E-3 PFC MOS:92G
Age: 26
In-game name: BOB

 
#8 Posted at 2009-07-30 03:29        
     
Whoa it actualy works on first try that was off the top of my head :)

by the way i edited my post above and added somthing to show hints i dont know if you've already seen it or not

Played this game as a child, best times of my life.

Author Message


Posts: 91
Rank:


Level: Member

Country: us
Location: Massachusetts
Occupation:
Age: 46
In-game name: specterm

 
#9 Posted at 2009-07-31 04:12        
     
How do I add an init.sqs file?


Author Message


Posts: 106
Rank:


Level: Member

Country: us
Location: Behind you, check. I'll be there.
Occupation: Future U.S.M.C scout/sniper
Age:
In-game name:

 
#10 Posted at 2009-07-31 04:22        
     
Either use arma edit and make a .sqs file and copy/paste it there then save to your mission. If not then just get notepad and copy/paste what he said in there, then save it with a file nameInit.sqs in the folder of your mission, which is located in

Profile name-->My documents-->Arma-->missions-->Mission name

NO MATTER WHAT SPECIAL FORCES GROUP, S.A.S, Marine Force Recon, U.S. Delta, U.S. Rangers, the guy with a full blown beard and mustache that looks like a crazy old guy with a rifle is ALWAYS the most Bad Ass. Period.

Author Message


Posts: 91
Rank:


Level: Member

Country: us
Location: Massachusetts
Occupation:
Age: 46
In-game name: specterm

 
#11 Posted at 2009-07-31 04:33        
     
I tried this and it says on the top right scaler minutes remaining


Author Message


Posts: 91
Rank:


Level: Member

Country: us
Location: Massachusetts
Occupation:
Age: 46
In-game name: specterm

 
#12 Posted at 2009-07-31 15:04        
     
nevermind, it works well when brought over to mp missions.