Home   Help Search Login Register  

Author Topic: init.sqs error line when i start mission  (Read 2457 times)

0 Members and 1 Guest are viewing this topic.

Commando

  • Guest
init.sqs error line when i start mission
« on: 01 Mar 2004, 02:25:37 »
this is making me go nutz, i have a mission that has some very cool scripts that i have downloaded but i have a problem, when i press start in the lobby and then it takes a while before the mission loads and when i get into the brifing i get ge1,ge2 and ect, ect, ect line of code in the top of my screen.
It does not crash ofp to the desktop and it does not freeze my comp but it makes the mission look ugly and unskilled made. and im not 100 % sure that the scripts work the way they should.

here's whats in my init.sqs


?(param1 == 1):skiptime 6.2
?(param1 == 2):skiptime 12
?(param1 == 3):skiptime 18.4
?(param1 == 4):skiptime 0.1

Param1 = 1800



; Init Group Link II script
  [[[ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge11,ge12,ge13,ge14,ge15,ge16,ge17,ge18,ge20,ge21,ge22,ge23,ge24,ge25,ge26,ge27,ge28,ge29,ge30,ge33,ge34,ge35,ge36,ge37,ge38,ge39,ge40],[ge1,ge28,ge29,eg1,ge19,ge31,ge32],[ge1,ge10,ge7,ge19],gw1,0,0.10] exec "AI\grouplink2.sqs"


javascript:open_snippet('resource_view.php?id=498')

here's a link to the original script that i used in my mission.

and if you guys want i can try posting up the mission file after some modification because the file size is 15 mb with scripts and custom music and all enemies. very many way's to play through this mission btw.  ;D

update get the mission from my crapy designed page  ;)  http://ofpsource.50megs.com/index.html

here's the readme with links to addons too  :)

Sorry fellas it seems that when i typed 2 brackets here only one of them is showing up, but now there are two of them  :)
« Last Edit: 02 Mar 2004, 12:08:33 by Commando »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:init.sqs error line when i start mission
« Reply #1 on: 01 Mar 2004, 02:38:16 »
[
Plenty of reviewed ArmA missions for you to play

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:init.sqs error line when i start mission
« Reply #2 on: 01 Mar 2004, 02:41:45 »
As far as I can see this line makes no sense at all:

[ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge11,ge12,ge13,ge14,
 ge15,ge16,ge17,ge18,ge20,ge21,ge22,ge23,ge24,ge25,ge26,ge27,ge28,ge29,ge30,ge33,ge34,ge35,ge36,ge37,
 ge38,ge39,ge40,],[ge1,ge28,ge29,eg1,ge19,ge31,ge32],[ge1,ge10,ge7,ge19],gw1,0,0.10]



Planck
I know a little about a lot, and a lot about a little.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:init.sqs error line when i start mission
« Reply #3 on: 01 Mar 2004, 13:14:38 »
I don't know if it makes any sense or not, but I counted the brackets and you're short of a [ at the start.
Plenty of reviewed ArmA missions for you to play

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:init.sqs error line when i start mission
« Reply #4 on: 01 Mar 2004, 14:15:38 »
Yep Macca is right, you're missing one open bracket at the start
of your exec statement.

This should work:

Code: [Select]
[[ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge11,ge12,ge13,ge14,ge15,ge16,ge17,ge18,ge20,ge21,ge22,ge23,ge24,ge25,ge26,ge27,ge28,ge29,ge30,ge33,ge34,ge35,ge36,ge37,ge38,ge39,ge40],[ge1,ge28,ge29,eg1,ge19,ge31,ge32],[ge1,ge10,ge7,ge19],gw1,0,0.10] exec "AI\grouplink2.sqs"

:edit - btw i found one more error at the end of the first sub-array, where it says:
Code: [Select]
ge40,]

You don't need that comma behind ge40, as the array ends there.


~S~ CD
« Last Edit: 01 Mar 2004, 14:18:11 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Commando

  • Guest
Re:init.sqs error line when i start mission
« Reply #5 on: 01 Mar 2004, 16:09:32 »
could it be because i have put a bracket here [gw1,0,0.10] exec "AI\grouplink2.sqs" ?


thx for your replies folks

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:init.sqs error line when i start mission
« Reply #6 on: 01 Mar 2004, 18:30:20 »
Soz, but i can't follow your last question m8.

If you copy and paste the example from my last post,
it should work for you. I think i've fixed all your errors
in there.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Commando

  • Guest
Re:init.sqs error line when i start mission
« Reply #7 on: 01 Mar 2004, 21:17:13 »
well i copied your stuff Chris death but now i get a new error  :-[

'while "count_temparray > 0" do {_account = (count_temparray); _rand = random _acount; _rand = _rand - (_rand mod 1);_mov and then i can't see the rest because of my monitor isn't big enough  :P

anyone of you pro's got any idea what may be wrong? I have uploaded the mission to my site and its cut down to around 60 kb, i even had to cut away the weather script i had but i still couldn't reach the 50 kb limit at ofpec so i had to get a free webbhost  ;)

Exgtract the contents from the .zip into your user\missions folder and make sure that you have a folder there named survival ing b lfsa.noe and there the scripts should be and the mission too  8)

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:init.sqs error line when i start mission
« Reply #8 on: 02 Mar 2004, 00:01:05 »
Soz, but i can't check the setup of your mission here.
All i can do is: checking for the right exec statement.

But what i noticed for example is some of your groups may be wrong
in the exec statement.

In your first array you have some groupnames more than once:

ge1 - ge10 is in there twice in the very same subarray (the first
array of your exec statement).

Then you have a group called: eg1 (not sure if this is a typo or not).

Then there's another array, where there is ge1 twice in.

As i said, the organisation of the arrays is up to you, as i don't know
anything about your mission.

I would suggest you to have one more look into the group link 2 readme,
to see what you have done wrong where. There's really no way, where
a third person could be some help for you at this point.

~S~ CD



Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Commando

  • Guest
Re:init.sqs error line when i start mission
« Reply #9 on: 02 Mar 2004, 01:40:13 »
it says in the group link 2 readme that the 1 st parameter - groups
 -----------------------

 This is a array of enemy groups that can call other groups for backup and be
 called by other groups for backup


and also this

 2 nd parameter - static_groups
 ------------------------------

 This is a array of enemy groups which are already contained in the first array
 of groups, but are treated differently by the script. These groups can call
 other groups for backup, but CANNOT be called by other groups for backup. Nor
 will they advance towards detected gunfire. This is usefull for groups which
 are assigned to defend bases, or need to stay in a specific area for whatever
 reason.


and about eg1 its a single unit standing at a special location and he has a special thing he doe's so thats why i named him like that. And ge1 is a group that is listed in both the first and second array.

i have put up mission to download and readme with links to addons so you can try it out but maybe you don't got time or comp powwa to handle it? My parents 256 mb ram 2.0 gig intel p4 with geforce 4 mx laggs very much when playing it, and my own comp that has the specifications geforce 2 mx  :-[ and amd xp 2.0 gig processor and 512 mb in ram laggs a bit the first 5 mins but it laggs less the more enemies you put an stop to  ;D decreasing alive a.i's on the mission helps making it run smoother so i can say that it laggs less after every firefight usually.  :)

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:init.sqs error line when i start mission
« Reply #10 on: 02 Mar 2004, 02:09:40 »
OK, again what i tried to tell you is:

Code: [Select]
[[ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge11,ge12,ge13,ge14,ge15,ge16,ge17,ge18,ge20,ge21,ge22,ge23,ge24,ge25,ge26,ge27,ge28,ge29,ge30,ge33,ge34,ge35,ge36,ge37,ge38,ge39,ge40],[ge1,ge28,ge29,eg1,ge19,ge31,ge32],[ge1,ge10,ge7,ge19],gw1,0,0.10] exec "AI\grouplink2.sqs"

There is the first array:

[ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge1,ge2,ge3,ge4,ge5,ge6,ge7,ge8,ge9,ge10,ge11,ge12,ge13,ge14,ge15,ge16,ge17,ge18,ge20,ge21,ge22,ge23,ge24,ge25,ge26,ge27,ge28,ge29,ge30,ge33,ge34,ge35,ge36,ge37,ge38,ge39,ge40]

This is a array of enemy groups that can call other groups for backup and be
called by other groups for backup.
Well so shall it be, but why do you have: ge1 - ge10 twice in this array? - check
out yourself.

Then there's array 2:

Code: [Select]
],[ge1,ge28,ge29,eg1,ge19,ge31,ge32]
This is a array of enemy groups which are already contained in the first array
of groups, but are treated differently by the script. These groups can call
other groups for backup, but CANNOT be called by other groups for backup. Nor
will they advance towards detected gunfire. This is usefull for groups which
are assigned to defend bases, or need to stay in a specific area for whatever
reason.

Well, as you can see there's a group called: eg1
That's the group, where i'm not sure wether you made a typo or not.

OK, that's all i could find for now.

And btw - i've got a P4 3.0 / 1 gig of ram, gforce 4, so there's a minimum
chance that my system could handle your mission  ;D

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Commando

  • Guest
Re:init.sqs error line when i start mission
« Reply #11 on: 02 Mar 2004, 12:04:51 »
no typos there and well i have fixed some stuff but i get that array thingy now instead