[PROGRAM] X-Studio FL update (unoffical) {WIP}

The place to discuss scripting and game modifications for X³: Farnham's Legacy

Moderators: Moderators for English X Forum, Scripting / Modding Moderators, Moderators for the X3:FL Forums

Post Reply
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

[PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Cycrow » Fri, 7. Jan 22, 12:47

For X3FL V2 of X-Studio, please view this thread

This is an unofficial update to support X3FL
Original version by mr.bear can be found here (not compatible with X3FL)

https://xpluginmanager.co.uk/flscripts/X-StudioFL.zip
Simply unzip somewhere then run the X-Studio.exe to open

Source Code: Here

Changes:
  • Added X3FL as selectable game
  • Added support for addon2 directory
  • Added add X3FL text page support (39xxxx)
  • Added additional script command groups
  • Added new datatypes from X3FL
  • Added new parameter definitions from X3FL
  • Added all X3FL new commands
Last Updated: 08/01/2022

Some of the new commands will appear in the "Custom" group. These will eventually be moved into property groups.

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by alexalsp » Fri, 7. Jan 22, 15:13

It is not possible to download, the site does not work. It would be nice to have an alternative link to Google Drive, for example.
Thank you.

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Cycrow » Fri, 7. Jan 22, 15:19

try it now, it was a typo in the link

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by alexalsp » Fri, 7. Jan 22, 15:52

Cycrow wrote:
Fri, 7. Jan 22, 15:19
try it now, it was a typo in the link
It works, thanks. :wink: :thumb_up: :x3:


Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Sat, 8. Jan 22, 05:42

Fine!
If that helps you, there are all the new script commands from FL1.2 here.

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Cycrow » Sat, 8. Jan 22, 10:32

Thanks.

i have added those into the custom group for now.

so all the X3FL commands should now be available

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Sun, 30. Jan 22, 12:47

Hello.
Why such an old version 1.01?
Current 1.08.

If you are ready to bring this editor to a working state, then I will try to help you in this difficult task. :)

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Cycrow » Sun, 30. Jan 22, 14:28

1.01 was the only one i could find the source code for.

if you have the source code for a higher version then i could take a look at that.
i have included the modified source in the first post to.

so if you want to, you could do some work on it too.
its mostly updated and working for FL as is.

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Sun, 30. Jan 22, 17:09

Here is the latest version 1.08.

And here is Command Syntax.txt with all the commands for X3FL. All unallocated script commands moved from CUSTOM to new group FARNHAMS_LEGACY.
There were a lot of errors with parameters in your file. Also, the work of script commands for arrays and tables has been fixed, plus script commands from previous games have been updated.

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Joubarbe » Mon, 31. Jan 22, 12:03

It would be nice to have a way to add custom macros. I don't know the code and how they are managed internally, but that could seriously makes life easier. @Deniskos: do you know how macros are coded?

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Mon, 31. Jan 22, 15:54

What do you mean?
If you're talking about it "Automatically insert script code macros", then it's just an automatic conversion of some code constructs into C-like code.
For example:

Code: Select all

while $PlCargoWaresSize
   dec $PlCargoWaresSize
   $PlCargoWare = $PlCargoWares[$PlCargoWaresSize]
   add custom menu item to array $ProductWareMenu: text=$PlCargoWare returnvalue=$PlCargoWare
end
to

Code: Select all

for each $PlCargoWare in array $PlCargoWares using counter $PlCargoWaresSize
   add custom menu item to array $ProductWareMenu: text=$PlCargoWare returnvalue=$PlCargoWare
end

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Joubarbe » Mon, 31. Jan 22, 16:41

I'm talking about X-Studio macro systems. A few commands are macros that MrBear wrote. One command being a group of several others. Or sometimes it's just the name that he changed, for clarity and concision. Would be good to be able to make our own, as many scripts I wrote are just convenience that should actually be macros (as we don't have proper functions).

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Wed, 13. Apr 22, 07:20

Updated editor version to 1.08
- brought script commands for working with tables to working condition
- added a new group (Farnham's Legacy Commands ) for unassigned commands
- in accordance with the new changes, script commands from previous versions of the game have been changed
- fixed incorrect parameter types

Known issues:
- translation of <Var/CarrierRole> and <Var/Agent Command> parameters does not work
There are tooltips to enter the required values. To display, move the mouse pointer over the required script command.

- constants like CmdMenu.Ship must be reassigned in the in-game script editor
There are tooltips to enter the required values. To display, move the mouse pointer over the required script command.

- new data types must also be reassigned in the in-game script editor

Download here
Source code here
Last edited by Deniskos on Mon, 18. Apr 22, 12:35, edited 3 times in total.

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Fri, 15. Apr 22, 09:58

:arrow: Fixed everything, re-uploaded the archives. :arrow:

Purls
Posts: 7
Joined: Sat, 4. Jul 20, 07:13
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Purls » Mon, 27. Feb 23, 02:45

Hey there friends, a friend of mine was working with this and ran into an issue when trying to set an array value as a certain value:

Code: Select all

$array[0] = $x
does not compile.

Is there any substitute or fix for this?

Thanks

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Tue, 28. Feb 23, 03:27

Purls what version of the editor are we talking about?
This version does not have this command. Instead, there is an

Code: Select all

array or table set $ArrayTable ($Value) = $Value

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Re: [PROGRAM] X-Studio FL update (unoffical) {WIP}

Post by Deniskos » Mon, 10. Apr 23, 08:07

:arrow: X-Studio-v1.08_X3FL-v1.3.5
- added all new commands from Unoffical Patch : V1.3.5
- changes made to all old commands

All new commands from Unoffical Patch : V1.3.5 have been added to the Farnham's Legacy Commands section of the editor.

Post Reply

Return to “X³: Farnham's Legacy - Scripts and Modding”