EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[LIB] mEngine 1.0
Post new topic Reply to topic Goto page 1, 2  Next
View previous topic :: View next topic
Author Message
PrizzZ
Moderator (Français)
Moderator (Français)

MEDALMEDAL

Joined: 28 Mar 2004
Posts: 2349 on topic
Location: Bala Gi's Joy
Thank you for registering your game
modified
PostPosted: Fri, 10. Mar 06, 04:23    Post subject: [LIB] mEngine 1.0 Reply with quote Print





1. Info


    Nom: mEngine
    Version: 1.1b
    Scripter: PrizzZ
    xml used: xx7777.xml
    t id used: 7777

    Download :
    1.1b: mEngine.zip




2. Functions


    This lib is used to emule a menu thanks to the "send incoming question" command.
    THIS IS NOT A SCRIPT, it's just a tool for scripter to use less command slot and
    improve their scripts by asking the player wanted datas like a sector, a ship type, etc ...
    without waiting for the player to enter the datas by the slot command.



3. Use



    All you have to do is to install mEngine on your game folders and call lib.mEngine.askfor.
    This script needs 1 argument : an array which contains what you want to be asked to the user
    thanks to the following object you can put in that array. The answers will be return by the script
    in an array, in the same order as the question comes.

    Here are the following inputs for the array :

    • Custom : you can input an array of string. The menu will display the string in order
      and return the number of the wanted string.

      Code:
      $wanted =  array alloc: size=0
      $custom =  array alloc: size=0
      append "test1" to array $custom
      append "test2" to array $custom
      append "test3" to array $custom
      append $custom to array $wanted
      $wanted = [THIS] -> call script 'lib.mEngine.askfor' :  Wanted=$wanted


      if you select test2, the script will return an array of one element which
      will be 1. Don't be affraid, this is the MOST COMPLICATED exemple !


    • Numbers : you can input a number of the following list, it will return the choosen element
      of that list. The possibilities are actually :

        0. Sectors
        1. A number !
        2. Player Owned ( ships and stations )
        3. Player ships
        4. Player station
        5. Ship type
        6. Ware type
        7. Object in sector
        8. Fighter type
        9. Big Ship type
        10. Player ship excluding satellites, mines and drones.
        11. Player owned bases : Carriers and stations


      In fact many more can be easily scripted, excepted string entries and few other exceptions.

      Code:
      $wanted =  array alloc: size=0
      append 7 to array $wanted
      append 1 to array $wanted
      $wanted = [THIS] -> call script 'lib.mEngine.askfor' :  Wanted=$wanted


      this will ask to the player first a sector, then an object in that sector, and then a
      number, and put the array of answers in $wanted. Easy, no ?


    This lib support multiple demands at the same time.
    Note: If the user cancel the selection, lib.mEngine.askfor will return null.



4. Version



    1.1b : 07.08.2007

    New features :

    • Add the 11th menu type


    1.1 : 31.07.2007

    New features :

    • Add the 10th menu type
    • Add the "Cancel" function
    • Add filters for un-used elements and ReadText


    1.0 : first release ( 10.03.2006 )


    Fell free to add comments, propose improvements and ask for more inputs !




Last edited by PrizzZ on Sun, 3. Feb 13, 14:01; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
PrizzZ
Moderator (Français)
Moderator (Français)

MEDALMEDAL

Joined: 28 Mar 2004
Posts: 2349 on topic
Location: Bala Gi's Joy
Thank you for registering your game
PostPosted: Fri, 3. Aug 07, 13:29    Post subject: Reply with quote Print

    31.07.2007 : 1.1 release

    New features :

    • Add the 10th menu type
    • Add the "Cancel" function
    • Add filters for un-used elements and ReadText

    See above for download and details.


Back to top
View user's profile Send private message Send e-mail
Kilrathi Avenger



MEDAL

Joined: 06 Feb 2004
Posts: 275 on topic
Location: Edwinstowe, UK
Thank you for registering your game
PostPosted: Sat, 18. Aug 07, 19:14    Post subject: Reply with quote Print

Apologies for the daft question but is this compatible with XTM MOD Question

Thank You


_________________
"As I slide down the banister of life;
my job is just another splinter in the bum"
Back to top
View user's profile Send private message
PrizzZ
Moderator (Français)
Moderator (Français)

MEDALMEDAL

Joined: 28 Mar 2004
Posts: 2349 on topic
Location: Bala Gi's Joy
Thank you for registering your game
modified
PostPosted: Sat, 18. Aug 07, 19:24    Post subject: Reply with quote Print

As this is a library, it itself use no command, just the xx7777.xml. But if your installing a script using this library, check with the scripter if it script is compatible. If it is, this should work.

As i'm posting here, I add this small update (already the lib your downloading since few weeks ...)
    11.08.2007 : 1.1b release

    New features :

    • Add the 11th menu type

    See above for download and details.




Last edited by PrizzZ on Sat, 18. Aug 07, 19:27; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Kilrathi Avenger



MEDAL

Joined: 06 Feb 2004
Posts: 275 on topic
Location: Edwinstowe, UK
Thank you for registering your game
PostPosted: Sat, 18. Aug 07, 19:25    Post subject: Reply with quote Print

Thanks for the quick reply.


_________________
"As I slide down the banister of life;
my job is just another splinter in the bum"
Back to top
View user's profile Send private message
Esraven





Joined: 14 Jan 2003
Posts: 23 on topic
Location: Belgium
Thank you for registering your game
PostPosted: Thu, 23. Aug 07, 12:35    Post subject: Reply with quote Print

I need to install your engine for the PiloteAI script (http://forum.egosoft.com/viewtopic.php?t=182897)

I have no scripting experience. I always use cycrows package installer to install the scripts

You say I need to install the files in your zipfile to the local game folders.
It is not clear to me which folder or folders you mean.

Suppose I installed X3 to c:\program\x3
Do I unzip your zip file to this folder?
Or are you meaning some subfolder within c:\program\x3. If so which one?

Greetings

Back to top
View user's profile Send private message
PrizzZ
Moderator (Français)
Moderator (Français)

MEDALMEDAL

Joined: 28 Mar 2004
Posts: 2349 on topic
Location: Bala Gi's Joy
Thank you for registering your game
PostPosted: Thu, 23. Aug 07, 12:42    Post subject: Reply with quote Print

The procedure is :
Extract the lib where you want to.
In the folder where you extract it, there will be two directories :
  • scripts, which contains files that you will copy in your c:\program\x3\scripts folder
  • t, which contains files that you will copy in your c:\program\x3\t folder


Think I'll better make a Cycrow Package .... Thinking

Back to top
View user's profile Send private message Send e-mail
DeadZone





Joined: 26 Sep 2003
Posts: 69 on topic
Location: England
Thank you for registering your game
PostPosted: Wed, 19. Sep 07, 03:22    Post subject: Reply with quote Print

Download doesnt appear to be working at the moment

Back to top
View user's profile Send private message
PrizzZ
Moderator (Français)
Moderator (Français)

MEDALMEDAL

Joined: 28 Mar 2004
Posts: 2349 on topic
Location: Bala Gi's Joy
Thank you for registering your game
PostPosted: Wed, 19. Sep 07, 08:04    Post subject: Reply with quote Print

Working on this morning.

Back to top
View user's profile Send private message Send e-mail
Esraven





Joined: 14 Jan 2003
Posts: 23 on topic
Location: Belgium
Thank you for registering your game
PostPosted: Mon, 15. Oct 07, 23:14    Post subject: Reply with quote Print

Thanks for your reply

Greetz

Back to top
View user's profile Send private message
Omnicron Lyrae





Joined: 01 Dec 2005

Location: In your head!

PostPosted: Tue, 11. Dec 07, 22:39    Post subject: Reply with quote Print

Download still isn't working.

Back to top
View user's profile Send private message
PrizzZ
Moderator (Français)
Moderator (Français)

MEDALMEDAL

Joined: 28 Mar 2004
Posts: 2349 on topic
Location: Bala Gi's Joy
Thank you for registering your game
PostPosted: Tue, 11. Dec 07, 22:50    Post subject: Reply with quote Print

Sorry, should be working now.

Back to top
View user's profile Send private message Send e-mail
Lancefighter





Joined: 19 Dec 2004
Posts: 2936 on topic

Thank you for registering your game
PostPosted: Wed, 12. Dec 07, 00:42    Post subject: Reply with quote Print

I like the use of ES's forum pictures (the lines) in your post Very Happy
Lancefighter totally does not understand the usefulness of it, as he is not a scripter though...

Just wanted to comlpiment your use of the pictures Very Happy

(btw, you can also steal the download button off the download section, like LV does... ) Wink


_________________
in the market for a new sig, willing to pay 1 billion credits for a proper sig...
Back to top
View user's profile Send private message
MJALowe





Joined: 05 Jan 2007
Posts: 461 on topic

Thank you for registering your game
PostPosted: Wed, 23. Jan 08, 06:41    Post subject: Reply with quote Print

would it be possible to get this converted to run with the MD incoming question handler? so it doesn't generate log entries? (its not a quick fix it seems cause the MD question handler uses strings and numbers ok, but doesn't pass vars very well)


_________________
My Collection
Back to top
View user's profile Send private message
MJALowe





Joined: 05 Jan 2007
Posts: 461 on topic

Thank you for registering your game
PostPosted: Thu, 24. Jan 08, 07:47    Post subject: Reply with quote Print

well....since I have a need for a working version of this that uses the MD Incoming question handler I've started making one that will work

so far the selectable list has:
Code:

station
station owned by player
ship
ship owned by player
ship or station
ship or station owned by player

sector
object in sector (station ship asteroid)


i still have left to add
Code:

homebase
homebase owned by player
station or carrier to dock at
warpgate
asteroid
ware in sector
ware
station type
station serial
ship type
object class
ware transport class
relation
station and resource
station and product
station and ware
ship and ware
ware of ship
jumpdrive gate
sector position
race


im not going to be doing
Code:

flight retcode
command/signal
script datatype


some of them i need coding suggestions for on how to get them
some of them i may decide not to do


_________________
My Collection
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Thu, 19. Apr 18, 15:31

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.09914 seconds, sql queries = 29