The Starport
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord
  • Register
  • Login

Help with a mission script

Scheduled Pinned Locked Moved Speciality Modding
54 Posts 13 Posters 76.3k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #28

    I have crazy idea to write special mission player traffic, and replay it after each server restart. It’ll be bot - the mission creator X))

    1 Reply Last reply
    0
  • T Offline
    T Offline
    TheDvDMan
    wrote on global:last_edited_by,
    #29

    At /data/missions/m13.ini:
    [Mission]
    npc_ship_file = missions\npcships.ini

    [MsnSolar]
    nickname = fp7base
    faction = li_p_grp
    reputation = li_p_grp
    system = LI01
    base=intro1_base
    position = 3600, 1000, -21000
    orientation = 1, 0, 0, 0
    archetype = freeport7
    loadout = freeport7
    label = lbl_fp7base
    radius = 0
    pilot = setscene_nomad_fighter_FP7
    random_name = true
    .
    .
    .

    Isn’t it Mission1a? Freeport 7…

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #30

    No, it is not mission m01a, it is peace from mission m01a with other pilot, loadout, base and faction 🙂

    1 Reply Last reply
    0
  • K Offline
    K Offline
    khayman
    wrote on global:last_edited_by,
    #31

    To stop the multiple spawning of all objects, base’s, npc etc i have two scripts running.
    Each new player that joins the server starts on a basic script.
    I have a character on a seperate i.d that has the second script info (which spawns everything then locks manhattans dock after launch). In addition to this, i can use this character to begin other missions running by landing on other bases each time locking the dock.
    When a server restart happens i use the character and .beam to manhattan where i can start that script again.

    Seems to be working so far! 🙂

    1 Reply Last reply
    0
  • T Offline
    T Offline
    TheDvDMan
    wrote on global:last_edited_by,
    #32

    Locking the dock… …Start that script again…

    Well that sucks! If you want people to play on this server you need either unlock the bases and reset the scripts with the server, or lock the bases and don’t restart the scripts (Making it remember what each player did), unless it will drive people crazy redoing the same missions in the same order every day again and again and again… Just thinking of it makes me hate this server, and it doesn’t exist yet.

    1 Reply Last reply
    0
  • K Offline
    K Offline
    khayman
    wrote on global:last_edited_by,
    #33

    The bases only become locked to my character starting scripts… its so i dont forget that a base starts a script and i land by mistake.
    All other players can still land anywhere and the script they are using unlocks jumpholes and changes their starting rep (once)…
    When they encounter a character in a base (can be one of many) they are offered missions and rewarded via pop up messages!

    Hope that helps clear things up.

    Cheers, Khayman

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #34

    Intresting:

    Cnd_InZone = false, Player, OBJECT_ZONE

    Any Zone? Only Player or Object allowed?

    Other parameters are:
    EXCLUSION_ZONE
    NEBULA_ZONE
    DUST_ZONE

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #35

    Additional Condition (number 43):

    Cnd_RumorHeard - not listed in Rasauul’s Storyline Bible

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #36
    Act_SetShipAndLoadout
    ```This not works! :cry:
    
    Adoxa maybe you know how force it to work?
    1 Reply Last reply
    0
  • adoxaA Offline
    adoxaA Offline
    adoxa
    wrote on global:last_edited_by,
    #37

    Looking at the disassembly, I don’t see anything that seems wrong. Sure you’re using it right? (I guess you mean in MP, since it must work in SP, otherwise you wouldn’t get a ship at the start.)

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #38

    Yep, i mean in mp.

    Strange, but if i do simple:

    ...
    [Trigger]
    nickname = tr_initialize_init
    system = li01
    InitState = ACTIVE
    Cnd_True = no_params
    ;Act_ChangeState = SUCCEED
    Act_ActTrig = go_mis
    
    [Trigger]
    nickname = go_mis
    system = Li01
    Cnd_Timer = 1
    Act_SetShipAndLoadout = none, none
    
    

    or

    ...
    [Trigger]
    nickname = tr_initialize_init
    system = li01
    InitState = ACTIVE
    Cnd_True = no_params
    ;Act_ChangeState = SUCCEED
    Act_ActTrig = go_mis
    
    [Trigger]
    nickname = go_mis
    system = Li01
    Cnd_Timer = 1
    Act_SetShipAndLoadout  = no_fighter, no_fighter
    

    Nothing going on, hmhmhmhm….

    1 Reply Last reply
    0
  • adoxaA Offline
    adoxaA Offline
    adoxa
    wrote on global:last_edited_by,
    #39

    If you could provide me with a small mod to get started, I’ll see if I can track down what’s going on.

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #40

    Thx Adoxa!
    It works, simply need to relogin 🙂

    1 Reply Last reply
    0
  • SkottyS Offline
    SkottyS Offline
    Skotty Wiki Contributor
    wrote on global:last_edited_by,
    #41

    Did you guys found a solution against multiactivating of the missions? Every login the .fl file grows with new [StoryInfo] parameters.
    How exactly do you activate spawning just by one player? I tried a lot in the past 5 hours, but every of my char will spawn objects or no char spawns anything.

    A solution would be to create a small extern program to remove every [StoryInfo] entry except one in every fl file, so no multiplicating is possible.

    By the way, if you set Mission_13 to be No_Mission, it does’nt activate anything.

    [StoryInfo]
    ship_bought = false
    Mission = Mission_13
    MissionNum = 41
    delta_worth = -1.000000
    debug = 0

    1 Reply Last reply
    0
  • Q Offline
    Q Offline
    Quarks Historic Supporter
    wrote on global:last_edited_by,
    #42

    I have the same problem with this multiactivating.

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #43

    try #26 - this must switch mission to no_mission

    1 Reply Last reply
    0
  • K Offline
    K Offline
    khayman
    wrote on global:last_edited_by,
    #44

    @ skotty - I use FLHook plugin version and i make a restart.fl with this at the bottom:

    [StoryInfo]
    ship_bought = false
    Mission = Mission_13
    MissionNum = 0
    delta_worth = -1.000000
    debug = 0

    or

    i use mpnewcharacter.fl once at the start of a server restart and delete

    [StoryInfo]
    ship_bought = false
    Mission = Mission_13
    MissionNum = 41
    delta_worth = -1.000000
    debug = 0

    before another script can start.

    1 Reply Last reply
    0
  • K Offline
    K Offline
    khayman
    wrote on global:last_edited_by,
    #45

    Just to give a quick update:

    I think ive stopped the multi-spawning of npcs and bases using mission code only (no flhook required).
    I’ll do some more tests, but so far is so good!
    If all goes well i will post the code, if people want it.
    Testing the server without flhook, flshell or anything of the like, just plain old freelancer (with the 1.1 patch).

    p.s - with this method it is easy to spawn ships, bases etc but it wont act like some kind of single player mission in multi-player.
    I guess its main use would be to add objects, bases, npcs etc without a client needing a mod.

    1 Reply Last reply
    0
  • X Offline
    X Offline
    Xalrok
    wrote on global:last_edited_by,
    #46

    This thread got me trying out mission scripting. So far I’ve managed to make NPCs spawn as well as Solars, even a dockable base in SP by experimenting with code here and in the SDK mission files. The main thing that bothered me about this was that the solars and NPCs vanished when I jumped out and returned to the system they were in. Will Solars vanish in MP if a player leaves the system they’re in, or do they persist in-game and this is just a problem with SP?

    1 Reply Last reply
    0
  • Q Offline
    Q Offline
    Quarks Historic Supporter
    wrote on global:last_edited_by,
    #47

    khayman wrote:
    I think ive stopped the multi-spawning of npcs and bases using mission code only (no flhook required).

    Will you also tell us what you did? Just making people curious is nasty 😄 :-x

    1 Reply Last reply
    0

  • Story Mission level requirement
    C
    CommanderArgelo
    0
    11
    52

  • Crash Offsets
    J
    josbyte
    0
    231
    251.4k

  • Capital ships shield collision detection
    C
    CommanderArgelo
    0
    3
    17

  • Dropping a phantomloot cargo from an NPC
    C
    CommanderArgelo
    0
    5
    26

  • Incorrect Shield Value on HUD
    C
    CommanderArgelo
    0
    4
    19

  • @Adoxa - Wheel Scroll plugin improvements
    AingarA
    Aingar
    0
    3
    20

  • Release: Advanced Renderer v. 1.1 beta 1
    S
    SWAT_OP-R8R
    3
    50
    428

  • German Mod Tutorials? 2024 Mod Tutorial?
    S
    SWAT_OP-R8R
    0
    18
    66
  • First post
    Last post
0
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord