Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Solo game question

  1. #1
    Computer geek
    Join Date
    Sep 2009
    Posts
    57

    Solo game question

    Hi, I am new to map making and so I need to bother you with my nonsensical questions. I would like to ask if any of you know how to end a solo game. I have tried scripts to even end the game as soon as you enter it, but none work. I am currently trying game_won but to no avail. I would really appreciate help. (Yes, it is set up as solo (done in Guerilla)) (Yes, I click compile scripts and then save scenario) (No, no errors come up)
    Thanks,
    -Arightwizard


    Examples of scripts I've tried that didn't work:

    (script startup endgame
    (sleep 5)
    (game_won)
    )
    (script startup endgame
    (game_won)
    )
    (script startup endgame
    (sleep_until (vehicle_test_seat_list drive_me "wdriver"
    (players)))
    (deactivate_team_nav_point_object "player" drive_me)
    (game_won)
    )
    (endgame = script's name and a trigger volume's name)
    (script startup endgame
    (sleep_until (volume_test_objects endgame (players))15)
    (game_won)
    )
    Last edited by Arightwizard; September 14th, 2009 at 04:17 PM.
    Reply With Quote

  2. #2
    ... *uses Shield Rifle*
    Join Date
    Mar 2007
    Posts
    122

    Re: Solo game question

    where are you placing your scripts? data or tags folder?
    they need to go in your data folder and you need to create a folder called scripts in your map folder. the same place you see the bitmaps folder...

    if there are no scripts to compile it'll always say compiled successfully thats all
    and game_won does work if scripts are compiled succesfully XD
    Reply With Quote

  3. #3
    Computer geek
    Join Date
    Sep 2009
    Posts
    57

    Re: Solo game question

    Quote Originally Posted by the1 View Post
    where are you placing your scripts? data or tags folder?
    they need to go in your data folder and you need to create a folder called scripts in your map folder. the same place you see the bitmaps folder...

    if there are no scripts to compile it'll always say compiled successfully thats all
    and game_won does work if scripts are compiled succesfully XD
    They are in data/levels/etc/etc/etc/scripts.
    But game_won seems to not work. If you say that it works, explain to me what it does. Does it just send data saying you won? Or does it end the game also?

    **Update**: Now I tried this:
    (script startup endgame
    (sleep 125)
    (fade_out 1.0 1.0 1.0 99)(cinematic_show_letterbox 0)
    (sleep 120)
    (game_won)
    )
    It fades away, but it does not complete the level. So can anyone tell me what might be wrong in every one of those scripts? Or what might be wrong with the map to cause it to be that way?
    Last edited by Arightwizard; September 14th, 2009 at 05:29 PM.
    Reply With Quote

  4. #4
    ... *uses Shield Rifle*
    Join Date
    Mar 2007
    Posts
    122

    Re: Solo game question

    it should also end the game.... hmmmm :S.... not sure...... hmmmmmmm
    oh!!! that only works if you specify the next map... and because you can't specify the next map on a custom map... it uhhh doesn't... wor........ try

    map_name "name of map string here"
    then try
    game_won

    you have to specify the map before it will load the next map i think.... i can't remember how i did it :S
    Reply With Quote

  5. #5
    Computer geek
    Join Date
    Sep 2009
    Posts
    57

    Re: Solo game question

    Quote Originally Posted by the1 View Post
    it should also end the game.... hmmmm :S.... not sure...... hmmmmmmm
    oh!!! that only works if you specify the next map... and because you can't specify the next map on a custom map... it uhhh doesn't... wor........ try

    map_name "name of map string here"
    then try
    game_won

    you have to specify the map before it will load the next map i think.... i can't remember how i did it :S
    I followed your advice and now I use this:
    (script startup endgame
    (sleep 125)
    (fade_out 1.0 1.0 1.0 99)(cinematic_show_letterbox 0)
    (sleep 120)
    (map_name salisp)
    (game_won)
    )
    (Yes, I use salisp for tests.)
    And for some reason now it likes to spaz out. It starts, ends, starts, ends, all on the same map over and over and over et cetera.
    **Edit**: Oh wait hold on, I think I know why..I'll try switching them around. (I've had personal experience with finishing salisp and when it's done it goes to a10, my map's name. So it goes to salisp and then the game_won works there...You get the idea)

    ***Edit***: Nope, it still spazzes out.
    Last edited by Arightwizard; September 14th, 2009 at 05:39 PM.
    Reply With Quote

  6. #6

    Re: Solo game question

    This is relevant to my interests.

    Have you tried switching the order of game_won and map_name? Or removing the game_won altogether? It's possible game_won is intended for mp, not sp... It's been ages since I've messed with that sort of thing, though.
    Reply With Quote

  7. #7
    ... *uses Shield Rifle*
    Join Date
    Mar 2007
    Posts
    122

    Re: Solo game question

    if you look at the script.doc created by sapian. it says something along the lines of


    bla bla bla move on to the next level bla bla bla...

    uhhhh hmmmmmmm when i get home from work ill ask sonicxtreme for some of my old scripts. he has all the sonic team related scripts for level changing for special zones.

    dam its been too long XD.
    Reply With Quote

  8. #8
    Junior Member
    Join Date
    Jan 2009
    Posts
    16

    Re: Solo game question

    Game won only loads maps from the original campaign, from my experience. If you don't have a10, then nothing happens, I believe. Remove it, because it's kind of redundant, if you're using map_name as well.
    Reply With Quote

  9. #9
    Computer geek
    Join Date
    Sep 2009
    Posts
    57

    Re: Solo game question

    Quote Originally Posted by Epsilon927 View Post
    Game won only loads maps from the original campaign, from my experience. If you don't have a10, then nothing happens, I believe. Remove it, because it's kind of redundant, if you're using map_name as well.
    The map's name is a10.map. (One I'm making)
    So you're saying if I get a30 it'll work? Don't blame me for asking, I know nothing in this situation.
    Reply With Quote

  10. #10
    Kid in the Hall Kornman00's Avatar
    Join Date
    Sep 2006
    Location
    ◕‿◕, ┌( ಠ_ಠ)┘
    Posts
    3,126

    Re: Solo game question

    Yeah, the names of all the campaign maps are hard coded, so you'll have to follow those names. There are ways around this fact but unless you know how to use C++, you won't be able to get around it.
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •