Home   Help Search Login Register  

Author Topic: Need help with Toadlife's Group Link Script pleeeeeeease!!  (Read 1218 times)

0 Members and 1 Guest are viewing this topic.

CptBravo

  • Guest
Hi eveyr one,

I just downloaded the mission GroupLink by Toadlife. It featured a great script AI script. I just have a couple of simpole questions:

a) How do you get rid of the hints that keep poping up in top left corner of screen?? lol
b) for the sake of real real simplicity for script challanged folks like us(me!), could someone make it so its 2 scripts instead of one? i.e one for the west and one for the east and both get activated by a trrigor.
So East AI script will be activated when West is detected by East.

Thank you very much foryour asisstance with this urgent matter :)

P.S. I attached his mission with this post.

« Last Edit: 16 Jan 2003, 08:11:06 by CptBravo »

CptBravo

  • Guest
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #1 on: 16 Jan 2003, 17:53:18 »
hey lets not all jump in all at once. One at a time please !! :)
Hmm .. it must be more complicated than I thought.

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #2 on: 16 Jan 2003, 19:43:31 »
If you noticed, there are two versions of the script in the .zip.  At least, there were when I looked at it yesterday.  One of them is with the mission, which displays the hints.  The other has the hints commented out.  Try using the one with the commented out hints.   ;)

In any event, since you know it's a hint, why didn't you try looking for the hint command in the script and commenting it out yourself?  :P
« Last Edit: 16 Jan 2003, 19:44:42 by Ranger »
Ranger

CptBravo

  • Guest
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #3 on: 16 Jan 2003, 21:02:49 »
Hey Ranger,

I actually did try deleting the lines that had hints in it but that somehow made the script unworkable! and got error msg.: " Scalar Bool Array String oxfc ffffef" Since I don't speak Japanese I had no clue what that meant! I have a feeling it meant you "boozoo" lol




Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #4 on: 16 Jan 2003, 22:31:13 »
Edit: I misread his post...whoops.  :-[

That error message is telling you what the problem is with the script.  I'm not 100% sure how to read it, either, but I think it's something like this:

The first variable type, scalar, is the type it received, but was not appropriate for that place.

The other types, bool, array, and string, are those that it could accept at that location.

Finally, the hex code is the exact location of the error.  Unfortunately, it doesn't help us humans to know where that is.
« Last Edit: 16 Jan 2003, 23:41:56 by Ranger »
Ranger

CptBravo

  • Guest
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #5 on: 17 Jan 2003, 05:43:23 »
Hey Ranger,

Thanks for replying back. I have tried the other script that was included in the folder. Now I am not getting as many hint but still getting
" Occupied Groups [] "

I have tried deleting different lines with no luck since me reading the script might as well be me reading 16th century Japanese !! :)

I have included the sample mission maybe someone can show me the error of my ways!

Thank you for your help.

CptBravo

  • Guest
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #6 on: 17 Jan 2003, 05:45:19 »
Ahh and could some one tell why some of the markers work and others don't?? lol

Thanks in advance.

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #7 on: 17 Jan 2003, 18:47:17 »
No problem at all.

As I haven't been able to test out the script or the mission, I don't have any clue what that error is.  My video card is currently dead, so unfortunately I won't be able to test any of this for at least a week or more.  However, if you still don't have the answer by then, I'll see what I can figure out.
Ranger

CptBravo

  • Guest
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #8 on: 17 Jan 2003, 23:54:57 »
Hey Ranger,

No video card??? That sucks!!
Wait a bit, G Force X is coming out soon and that will drop the G Force 4 prices down.

That was not an error messege. But another hint that keeps popping up! Not as many hints as the first script but neverthles still keep coming which is a bit of a distraction.

If anyone knows how to get rid of the hints tottaly and get the markters to work I'd be forever in your debt! :)

 

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #9 on: 18 Jan 2003, 06:58:48 »
No video card??? That sucks!!
Wait a bit, G Force X is coming out soon and that will drop the G Force 4 prices down.

Yep, it just died one morning.  Booted my computer...and nothing.  It's under warranty, so I'll get a replacement in about 2 weeks.  In the meantime, I'm itching to play OFP, but can't!  Arg!  :'(

Quote
That was not an error messege. But another hint that keeps popping up! Not as many hints as the first script but neverthles still keep coming which is a bit of a distraction.

If anyone knows how to get rid of the hints tottaly and get the markters to work I'd be forever in your debt! :)

Looks like you'll be in my debt. :)  Look inside the init.sqs.  For reference, I've pasted it below.

Code: [Select]
_eastgroups = [ge1,ge2,ge3,ge4,ge5,ge6]
_eaststaticgroups = [ge1]
_westgroups = [gw1,gw2,gw3,gw4,gw5,gw6]
_weststaticgroups = []
"[_eastgroups,_eaststaticgroups,_x,3,0.5] exec {grouplink.sqs}" foreach _westgroups
"[_westgroups,_weststaticgroups,_x,3,0.5] exec {grouplink.sqs}" foreach _eastgroups
occupied = []
[] exec "markers.sqs"
[] exec "teleport.sqs"
#loop
hint format["Occupied Groups:\n%1",occupied]
~15
goto "loop"

If you'll notice, there's the very hint you're talking about, the third line from the bottom.  Just comment it out.  Better yet, delete or comment out the entire #loop section.

Have fun.  :D
« Last Edit: 18 Jan 2003, 06:59:21 by Ranger »
Ranger

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #10 on: 19 Jan 2003, 01:32:17 »
b) for the sake of real real simplicity for script challanged folks like us(me!), could someone make it so its 2 scripts instead of one? i.e one for the west and one for the east and both get activated by a trrigor.
So East AI script will be activated when West is detected by East.

The script could not ever work that way. Read the readme file. It gives different examples of how to initialize the script. If you read the readme file 10 times and still don't get it then there are some concepts that you probbaly don't understand.

You need to khow to name your groups, and what the different variables that are passed to the script mean.

After reading the readme, post back here with anything you didnt get, and I'll try to help and possiblky update the readme accordingly.

"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

CptBravo

  • Guest
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #11 on: 19 Jan 2003, 04:58:41 »
Hey Ranger thanks for responding! I can safely say the hints issue has been fixed thanks to you! :)

The only other issue (I know!!) is if I take control of say group (gw1) as a leader, my team memembers won't shut up!!! "Move to house 12 O'clock, form wedge, weapons free, etc etc .. them giving orders even though I am the leader! (no respect I know!!) Now I could take the lead of a group not named in the script, but I have noticed when I do that , the enemy will not respond to my group as it would to a group named in the script. i.e. will not call for backup.

Any ideas?

Hey Toadlife: Awesome script!!! The AI certainly adds a new depth to the game!! I just need to familiraize myself with it more.
Any ideas on how to address the point mentioned above??

Thanks for a great script again! :)

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #12 on: 20 Jan 2003, 02:01:25 »
First of all, I'll go over how the scriupt is initialized and what everything passed to the script means....

[groups,staticgroups,targetgroup,3,0.4] exec "grouplink.sqs"

When you initialize an instance of the script, there are three arrays of groups that are passed to the script - "groups" , "staticgroups", and "targetgroup".

"Groups" = groups that will be checking for the "targetgroup", and can call eachother for backup if they see the "targetgroup"

"staticgroups" = these are the groups in the first array (see above) that that call for backup but can not be called for backup.

"targetgroup" = this is the group that that all of the groups in the "groups" array (see above) are checking for.

If you put your group in the "groups" array when initializing the script, you will inevitably start getting the anoying radio chatter when you encouter the "targetgroup" or another group in the groups array calls you for backup.

The solution is to leave the group you will be in charge of OUT of the "groups" array, when intializing the script.

When you initialize the script, if you put your group as the "targetgroup" then you won't experience all of the radio chatter, because the targetgroup is the group being checked for, and not being called for backup.


OK, lets say that there are 5 groups on the map....
w1,w2,e1,e2,e3

Lets say your group is "w1".

Heres how you could initialize the scripts without getting the radio chatter.

[[e1,e2,e3],[],[w1],3,0.4] exec "grouplink.sqs"

What the above would do....

The groups e1,e2,and e3 would check for the group w1 (your group) and call eachother for backup if they spot your group.

I'm not sure how else to explain it. I've basically covered most of what is in the readme in this post.


As for the example mission...here is how you would keep "gw1" out of the groups arrays when inistializing the scripts....
Code: [Select]
"[_eastgroups,_eaststaticgroups,_x,3,0.5] exec {grouplink.sqs}" foreach _westgroups
"[_westgroups - [gw1],_weststaticgroups,_x,3,0.5] exec {grouplink.sqs}" foreach _eastgroups

However this would keep "gw1" from being able to call for backup or be called for backup.








"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

CptBravo

  • Guest
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #13 on: 24 Jan 2003, 21:52:27 »
ToadLife thank you very very much!!! :)
Now it works perfectly!

Only question I have is do I need the "startit.sqs" in my mission folder? Or is the "init.sqs" enough? It seems the info is repeated in both.

The mission seemed to work fine without the startit.sqs and I was wondering.

Thank you for giving us an amazing script!! :)

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Need help with Toadlife's Group Link Script pleeeeeeease!!
« Reply #14 on: 24 Jan 2003, 22:45:15 »
I don't think startit.sqs is used for anything. It's just some leftover crap from when I was testing.  All that is needed is the lines in the init.sqs that start thye grouplink.sqs script(s).
« Last Edit: 24 Jan 2003, 22:49:54 by toadlife »
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.