Home   Help Search Login Register  

Author Topic: Scripts in folders  (Read 540 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
Scripts in folders
« on: 06 Jan 2004, 18:54:42 »
Hello,

I'm working on a (mafia/GTA style) mission where the player can conversate and ask questions to the several costumers.

It all hapens with addactions and there are a lot of scripts.
To organise it a bit I deciced to place all scripts in folders.

An example : one customer is called Vito

I saved his scripts like this :

VITO\mission1\...9 scripts
VITO\mission2\...7 scripts

and so on...

It works in the editor, but when I export the mission to SP, OFP can't find the scripts anymore.

It looks like this happens only with addaction-scripts, because other scripts work well when I place them in sub-folders.

Is there a workaround?
I guess not, but if U know something 'bout this, please reply...  :P

Thx 4 reading this


« Last Edit: 06 Jan 2004, 22:18:36 by Blanco »
Search or search or search before you ask.

Offline rhysduk

  • Former Staff
  • ****
Re:Scripts in folders
« Reply #1 on: 06 Jan 2004, 22:06:44 »
may i say ...

The way your are using , putting scripts into folders while the mission is being edited, is fine... but when you export it to SP or MP... all scripts need to be in the same mission folder and not any sub folders :)

or is this what you said  :-[

Rhys
« Last Edit: 06 Jan 2004, 22:18:52 by rhysduk »
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline Blanco

  • Former Staff
  • ****
Re:Scripts in folders
« Reply #2 on: 06 Jan 2004, 22:17:40 »
I did some tests, it works with subfolders, as long as these are not addaction -scripts

guy exec "guy\mis1\script1.sqs"

works in editor preview & SP export

but

guy addaction ["click here","guy\mis1\script1.sqs"]

works in the editor but NOT in SP export.

and I don't know why...

Search or search or search before you ask.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Scripts in folders
« Reply #3 on: 07 Jan 2004, 11:23:13 »
That's rather strange...

Uhm... Macca? LCD? Artak? Sui? Kali? etc? etc?

Offline KTottE

  • Former Staff
  • ****
Re:Scripts in folders
« Reply #4 on: 07 Jan 2004, 11:41:28 »
It worked perfectly for me.

The exact same setup.
One player unit named guy
One gamelogic named logic
One script in guy\mis1 named script1.sqs
Addaction line: guy addaction ["click here","guy\mis1\script1.sqs"]

Script1.sqs createVehicles an M1Abrams on the gamelogic's position, for testing purposes.

I tried it in preview, I tried exporting it to SP missions, and it worked both times.
You have done something wrong somewhere.

And Rhysduk is wrong, it is perfectly fine to have scripts in subfolders inside your mission folder because the editor will save this structure when exporting to SP missions.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Scripts in folders
« Reply #5 on: 07 Jan 2004, 12:11:12 »
What version are u using?

:beat: *Gets Shot* :beat:

Offline KTottE

  • Former Staff
  • ****
Re:Scripts in folders
« Reply #6 on: 07 Jan 2004, 13:28:17 »
1.94
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Scripts in folders
« Reply #7 on: 07 Jan 2004, 13:34:39 »
I meant Blanco :P ;D

:beat: *Gets Shot* :beat:

Offline Blanco

  • Former Staff
  • ****
Re:Scripts in folders
« Reply #8 on: 07 Jan 2004, 16:40:04 »
Version 1.94 (ECP 1.057 most of the time)

I tried it with a simple script (script1.sqs) with 1 line

hint "it works"

But it did not...    :P

Thx, for trying out, I try it again tonight,

When it's still a bummer, I'll post it up tommorow

***edit***

I think I know what I did wrong :P

When saving a mission in the editor as SP mission and change the filename, only the mission.sqm will be copied in the .pbo

***edit***

Yes, it works now, thx





« Last Edit: 09 Jan 2004, 18:47:30 by Blanco »
Search or search or search before you ask.