Jump to content
Sign in to follow this  
Fireball

Insurgency

Recommended Posts

is there a way to to spawn players and Mobile in a certain location at the start , instead of a random location ? as i would like to start at a main base

page 53, post 521 asks almost the same question, and fireball answered

http://forums.bistudio.com/showthread.php?112579-Insurgency&p=2102217&viewfull=1#post2102217

My question is on the line position said here:

initserver-common.sqf, lines 41-46.

I see this code in the script:

_pos = randPos;
while { count (_pos isFlatEmpty [30,0,0.2,20,0,false,objNull]) == 0 || getTerrainHeightASL _pos <= 2 } do {
_pos = randPos;

So how do i define what position I want?

Edited by Gnter Severloh

Share this post


Link to post
Share on other sites

Place a marker on the map. Then instead of _pos = randPos; try _pos = markerPos "yourMarkerName"; (where "yourMarkerName" is the name you gave to the map marker).

And of course, delete the while loop so it doesn't get set to a random position again.

Assuming that we're guessing correctly that this is indeed the starting position script, this should work.

Share this post


Link to post
Share on other sites

Thanks for the insight galzohar, i will give it a try.

I was thinking more along the lines of choosing where you would start at via mapclick, is there a way to do that?

edit

it works!

I put a marker down name start, and when the game started thats where I started, I mobilized the hq, and drove off far

away from the start and deployed the hq and it worked, tried respawn and it works np.

Edited by Gnter Severloh

Share this post


Link to post
Share on other sites
OK now and again I am getting the following message " UPS group all dead or surrender"

Because you killed the enemy, i mostly get that when i destroyed and enemy vehicle.

nothing wrong with it, its just telling you the status of the enemy you were in combat with.

Share this post


Link to post
Share on other sites

Thanks works great as well !

Not sure why but when i check there Skill they are all set to 1 the server is set to .6 so is there somewhere that Insurgency sets the Skill , if so where is it as i cannot locate it.

Also anyone know if ASR_AI works with Insurgency ?

Thanks

Share this post


Link to post
Share on other sites

Yes ASR_AI works with insurgency. Skill level is set in the user profile\server profile and in the perimeters recruit\regular\veteran....etc.

Share this post


Link to post
Share on other sites

OK Resolved it was just taking some time for the Units to change Skill settings

I am playing the ACE version , and noticed that when players are down and need medical help they simple press Esc and respawn again , is there a way to make them wait still for x amount of time otherwise players simply respawn all the time

Share this post


Link to post
Share on other sites

Is there a way to increase the timer for the CAS support, I mean by the time you get to the target location to do a CAS you

have like 10-15 secs to do anything and then your back to being a soldier.

Share this post


Link to post
Share on other sites

Hello,

When I add an A10 in editor grounded to be used by team, I get the following error as it's targetted by enemy AA in the 1.50 version:

Error in expression < [_x - (_range / 2) + random _range]; } foreach _twnrespect; _who setvariable [">   Error position: <foreach _twnrespect; _who setvariable [">   Error foreach: Type Number, expected Array File ca\modules\functions\systems\fn_respect.sqf, line 77

How can one fix this?

Share this post


Link to post
Share on other sites

I am trying to increase the medical supply you can carry in Insurgency , but to no avail - have the following in my init.sqf with the other ace stuff but will not increase it .

Is it set somewhere else

Have tried in (isServer) and also out but no luck

ACE_IFAK_Capacity = 4; publicVariable "ACE_IFAK_Capacity";

Share this post


Link to post
Share on other sites

Insurgency can be played singleplayer but problem it when you get killed you wont respawn, and trust me you will get killed.

But what you can do is host the mission, this is what I normally do, and play it by yourself, or join a server thats running it.

Share this post


Link to post
Share on other sites

thank!

Is normal start with ai spawn near the camp.....?!?

and i can recruit some friend soldat ??

Share this post


Link to post
Share on other sites

Normal depends where you spawn, as its random, as for friendly soldiers to recruit you would need to add that, mission is meant for coop.

i have a version where you start at the takistan Airfield, if you want i can setup an AI recruitment post there and you can get help in the mission.

Which map are you playign insurgency on?

Share this post


Link to post
Share on other sites

i have tried on falleluja... but for me is ok also the takistan Airfield... :O)

Share this post


Link to post
Share on other sites

What version of insurgency are you playing?, as I just edited the one I had which was v 0.76, latest version out is 1.50.

Boy am i behind, lol, I think i'll go check out 1.50.

Share this post


Link to post
Share on other sites

Ok, let me check v1.50 out and then I'll setup a starting point and see if i can implement this script:

http://www.armaholic.com/page.php?id=12113&highlight=RECRUIT%2BAI

which i have used before in my own missions.

---------- Post added at 07:42 AM ---------- Previous post was at 07:32 AM ----------

Anyone able to open v 1.50 I normally use CPBO and have no problems with any pbo,

opening or creating, but v1.50 wont open, it either gives me a failed error, or a block in the header.

Share this post


Link to post
Share on other sites

Is there any way to stop the .RPT error i am getting bellow , as you can see just in 3 seconds this is how many time i get it.

My .RPT log is now 252mb since starting last night and getting bigger, as it checks reports this error every second.

Any idea how to stop this error , or what is means ?

15:31:03   Error position: <atv12>
15:31:03   Error Undefined variable in expression: atv12
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv13>
15:31:03   Error position: <atv13>
15:31:03   Error Undefined variable in expression: atv13
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv14>
15:31:03   Error position: <atv14>
15:31:03   Error Undefined variable in expression: atv14
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv11>
15:31:03   Error position: <atv11>
15:31:03   Error Undefined variable in expression: atv11
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv12>
15:31:03   Error position: <atv12>
15:31:03   Error Undefined variable in expression: atv12
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv13>
15:31:03   Error position: <atv13>
15:31:03   Error Undefined variable in expression: atv13
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv14>
15:31:03   Error position: <atv14>
15:31:03   Error Undefined variable in expression: atv14
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv11>
15:31:03   Error position: <atv11>
15:31:03   Error Undefined variable in expression: atv11
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv12>
15:31:03   Error position: <atv12>
15:31:03   Error Undefined variable in expression: atv12
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv13>
15:31:03   Error position: <atv13>
15:31:03   Error Undefined variable in expression: atv13
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv14>
15:31:03   Error position: <atv14>
15:31:03   Error Undefined variable in expression: atv14
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv11>
15:31:03   Error position: <atv11>
15:31:03   Error Undefined variable in expression: atv11
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv12>
15:31:03   Error position: <atv12>
15:31:03   Error Undefined variable in expression: atv12
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv13>
15:31:03   Error position: <atv13>
15:31:03   Error Undefined variable in expression: atv13
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv14>
15:31:03   Error position: <atv14>
15:31:03   Error Undefined variable in expression: atv14
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv11>
15:31:03   Error position: <atv11>
15:31:03   Error Undefined variable in expression: atv11
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv12>
15:31:03   Error position: <atv12>
15:31:03   Error Undefined variable in expression: atv12
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv13>
15:31:03   Error position: <atv13>
15:31:03   Error Undefined variable in expression: atv13
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv14>
15:31:03   Error position: <atv14>
15:31:03   Error Undefined variable in expression: atv14
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv11>
15:31:03   Error position: <atv11>
15:31:03   Error Undefined variable in expression: atv11
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv12>
15:31:03   Error position: <atv12>
15:31:03   Error Undefined variable in expression: atv12
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv13>
15:31:03   Error position: <atv13>
15:31:03   Error Undefined variable in expression: atv13
15:31:03 Cannot create non-ai vehicle ,
15:31:03 Error in expression <atv14>
15:31:03   Error position: <atv14>
15:31:03   Error Undefined variable in expression: atv14
15:31:03 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv11>
15:31:04   Error position: <atv11>
15:31:04   Error Undefined variable in expression: atv11
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv12>
15:31:04   Error position: <atv12>
15:31:04   Error Undefined variable in expression: atv12
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv13>
15:31:04   Error position: <atv13>
15:31:04   Error Undefined variable in expression: atv13
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv14>
15:31:04   Error position: <atv14>
15:31:04   Error Undefined variable in expression: atv14
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv11>
15:31:04   Error position: <atv11>
15:31:04   Error Undefined variable in expression: atv11
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv12>
15:31:04   Error position: <atv12>
15:31:04   Error Undefined variable in expression: atv12
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv13>
15:31:04   Error position: <atv13>
15:31:04   Error Undefined variable in expression: atv13
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv14>
15:31:04   Error position: <atv14>
15:31:04   Error Undefined variable in expression: atv14
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv11>
15:31:04   Error position: <atv11>
15:31:04   Error Undefined variable in expression: atv11
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv12>
15:31:04   Error position: <atv12>
15:31:04   Error Undefined variable in expression: atv12
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv13>
15:31:04   Error position: <atv13>
15:31:04   Error Undefined variable in expression: atv13
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv14>
15:31:04   Error position: <atv14>
15:31:04   Error Undefined variable in expression: atv14
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv11>
15:31:04   Error position: <atv11>
15:31:04   Error Undefined variable in expression: atv11
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv12>
15:31:04   Error position: <atv12>
15:31:04   Error Undefined variable in expression: atv12
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv13>
15:31:04   Error position: <atv13>
15:31:04   Error Undefined variable in expression: atv13
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv14>
15:31:04   Error position: <atv14>
15:31:04   Error Undefined variable in expression: atv14
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv11>
15:31:04   Error position: <atv11>
15:31:04   Error Undefined variable in expression: atv11
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv12>
15:31:04   Error position: <atv12>
15:31:04   Error Undefined variable in expression: atv12
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv13>
15:31:04   Error position: <atv13>
15:31:04   Error Undefined variable in expression: atv13
15:31:04 Cannot create non-ai vehicle ,
15:31:04 Error in expression <atv14>
15:31:04   Error position: <atv14>
15:31:04   Error Undefined variable in expression: atv14
15:31:04 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv11>
15:31:05   Error position: <atv11>
15:31:05   Error Undefined variable in expression: atv11
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv12>
15:31:05   Error position: <atv12>
15:31:05   Error Undefined variable in expression: atv12
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv13>
15:31:05   Error position: <atv13>
15:31:05   Error Undefined variable in expression: atv13
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv14>
15:31:05   Error position: <atv14>
15:31:05   Error Undefined variable in expression: atv14
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv11>
15:31:05   Error position: <atv11>
15:31:05   Error Undefined variable in expression: atv11
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv12>
15:31:05   Error position: <atv12>
15:31:05   Error Undefined variable in expression: atv12
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv13>
15:31:05   Error position: <atv13>
15:31:05   Error Undefined variable in expression: atv13
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv14>
15:31:05   Error position: <atv14>
15:31:05   Error Undefined variable in expression: atv14
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv11>
15:31:05   Error position: <atv11>
15:31:05   Error Undefined variable in expression: atv11
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv12>
15:31:05   Error position: <atv12>
15:31:05   Error Undefined variable in expression: atv12
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv13>
15:31:05   Error position: <atv13>
15:31:05   Error Undefined variable in expression: atv13
15:31:05 Cannot create non-ai vehicle ,
15:31:05 Error in expression <atv14>
15:31:05   Error position: <atv14>
15:31:05   Error Undefined variable in expression: atv14
15:31:05 Cannot create non-ai vehicle ,

Share this post


Link to post
Share on other sites

Error position gives me the idea you placed an atv somewhere you shouldn't, not really sure, but whatever you did, undo it.

As for v 1.50 i cannot get the pbo opened to edit, it, personally a 45 sec respawn time is stupid when your just playing by yourself, or with a friend.

Share this post


Link to post
Share on other sites

Gunter , I get the same error .. however its not due to editor placed items .. i have been able to depbo the insurgency file and in the editor I can see, that there are no vehicles on the map except the HQ/stryker. They are all spwaned at game start..

I also get the error for hmmv, heli, and atv's...

Share this post


Link to post
Share on other sites

Those vehicle IDs are defined in common\defines.sqf and called in common\fsm\ServicePoint.bifsm. Check those locations for bad/missing code?

---------- Post added at 16:00 ---------- Previous post was at 15:55 ----------

Günter - I switched over from Cpbo to ExtractPbo a while ago and have not had a problem opening files since.

Share this post


Link to post
Share on other sites

Fireball mentioned this about that error, doesn't help with resolving it in this case though. I get it when I add more vehicles.

Share this post


Link to post
Share on other sites
Günter - I switched over from Cpbo to ExtractPbo a while ago and have not had a problem opening files since.

Good deal, thanks I've used extractpbo before, will give it a try.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×