Author Topic: script "merging"  (Read 24493 times)

billybob884-no login-

  • Guest
script "merging"
« Reply #30 on: 2005-05-19, 05:55:10 AM »
Or you can right-click and "Save Target As..."

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
script "merging"
« Reply #31 on: 2005-05-19, 06:02:28 AM »
What do I do with this project to see the problem?

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
script "merging"
« Reply #32 on: 2005-05-19, 06:04:12 AM »
Quote from: "billybob884-no login-"
Or you can right-click and "Save Target As..."


That doesn't work.  You have to paste the link into the address bar.  Unless maybe you have some software running that prevents sites from knowing where you came from when you click on a link.

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
script "merging"
« Reply #33 on: 2005-05-19, 06:10:13 AM »
Huh, worked for me, but nah, i'm on a school computer. On the title screen go down to the level select option and press enter, that's the map i'm using to test the 2 player script, but all of the 2 player maps are going to be the same in the fact that there will be a background layer and then main layer for the sprites.

Also, everything just goes into one folder when u decompress it.
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
script "merging"
« Reply #34 on: 2005-05-19, 04:02:30 PM »
The main reason that comes to mind as far as not finding the Player2 sprite is that there is no sprite in the entire game with that name on any map.  Also, change:
Code: [Select]

    If intSprTwo < 0 then
        For i = 0 to oLayer.SpriteCount - 1
            If oLayer.Sprite(i).rDef.Name = "Player2" then intSprTwo = i
        next
    End If
'Two Player Stuff

    If ProjectObj.GamePlayer.rMap.name = "0-4LevelSelect" then


to instead be:
Code: [Select]

'Two Player Stuff

    If ProjectObj.GamePlayer.rMap.name <> "0-4LevelSelect" then
        intSprTwo = -1
    else
        If intSprTwo < 0 then
            For i = 0 to oLayer.SpriteCount - 1
                If oLayer.Sprite(i).rDef.Name = "Player2" then intSprTwo = i
            next
        End If


And also, there is only ONE sprite on 0-4LevelSelect.  To have two players, you need two sprites.  And they both have to be initial instance sprites.  And also, the scroll margins are a bit wacky on those levels where you have two players, due to the sprite being too big for only half the screen.  I'd make them a bit more accomodating if I were you.
Edward Dassmesser

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
script "merging"
« Reply #35 on: 2005-05-19, 04:40:59 PM »
...What the he...   ..ck,
I know I added a 2nd player... maybe I just didn't save..

Ok, added the 2player, but

Code: [Select]
Error playing map: Display must be open to flip
[OK]

Script stopped at line 43 on character 9:
Subscript out of range
[OK]


Which I believe is

Code: [Select]
       With oLayer.Sprite(intSprTwo)

Here is the updated script file, gpd(dont know if u need this, so i included it), and map files (i altered the L2 map as well).
http://www.angelfire.com/ct3/billybob884/C-Man/Updated.rar
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
script "merging"
« Reply #36 on: 2005-05-19, 09:13:07 PM »
I think a few files must be missing.  It can't find some files that it needs to load propperly.  But now I see a second player anyway.  I can't really test the project with the missing files.
Edward Dassmesser

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
script "merging"
« Reply #37 on: 2005-05-20, 04:19:51 AM »
Well, the only things I left out were 12 media files (5 mp3's, 5 avi's, & 2 wmv's), everything else was in the Chameleon_Man.rar, and then some map/gpd replacements in the UPDATED.rar. I've been trying to upload the 'Media Package' to angelfire but since its a ~15mb package, angelfire keeps timing out (even on ftp upload). I guess i'll break it up into a buncha little packages and then put them up.

http://www.angelfire.com/ct3/billybob884/C-Man/1.rar
http://www.angelfire.com/ct3/billybob884/C-Man/2.rar
http://www.angelfire.com/ct3/billybob884/C-Man/3.rar
http://www.angelfire.com/ct3/billybob884/C-Man/4.rar
http://www.angelfire.com/ct3/billybob884/C-Man/5.rar

(Give them another 10-5 min to finish uploading)

-----added-later-----
ok, my page has been removed... ill try to find another place to upload the files when i get home.
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
script "merging"
« Reply #38 on: 2005-05-20, 10:19:18 AM »
Well, when I loaded it, the first error that came up was:

Error loading map: 3-2ToxicDumpIsland.map is not a valid map.

Either it was not included, is corrupt, or some of the files it requires are missing.

Any ideas about what's in that map?
Edward Dassmesser

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
script "merging"
« Reply #39 on: 2005-05-20, 02:04:21 PM »
ooo shoot, i'm sorry, i started working on the next part of the game and since i only sent the new gpd in the UPDATE.rar, it remembered the map being there but couldn't find it b/c i didnt send it. whoops.

UPDATED.rar (changed to zip cuz geocities wont take rar)
http://www.geocities.com/billybob8448/UPDATED.zip

Missing Map:
http://www.geocities.com/billybob8448/32map.zip

Media:
http://www.geocities.com/billybob8448/1.zip
http://www.geocities.com/billybob_884/2.zip
http://www.geocities.com/billybob8448/3.zip
http://www.geocities.com/billybob8448/4.zip
http://www.geocities.com/billybob8448/5.zip
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
script "merging"
« Reply #40 on: 2005-05-21, 03:41:06 PM »
Theres a problem in the 'forced scroll' level (2-4...), when the player dies the gmae crashes and gives me these error messages:

Code: [Select]
Invalid procedure call or agreement
[OK]

Error playing map: Object variable or With block variable not set
[OK]


I'm pretty sure their not script-related errors becuase I tried playing it in the regular builder window (w/ the play arrow button) and it still crashed. I'm looking throught the die function right now to see if i find anything that I see as out-of-place but nothing so far...  If I find it I'll remove this message.
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
script "merging"
« Reply #41 on: 2005-05-22, 06:51:29 AM »
The link to UPDATED.zip doesn't seem to work.

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
script "merging"
« Reply #42 on: 2005-05-22, 10:40:59 AM »
ok, it works now

------------
Also, nevermind about the crash for the forced scroll level, I figired it out.
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
script "merging"
« Reply #43 on: 2005-05-23, 07:26:02 PM »
The problem with the subscript out of range is that OnAfterMoveSprites seems to be firing once before there are any sprites on the new map.  I didn't look into how you are jumping to the Level Select map, but I'm guessing OnAfterMoveSprites fired right after the map was switched and before anything else had a chance to happen during the process of switching maps.  To fix it I just added this line of code before the line that says "If intSprTwo < 0 then":
Code: [Select]
if oLayer.SpriteCount <= 0 Then Exit Sub

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
    • AOL Instant Messenger - billybob884
    • View Profile
script "merging"
« Reply #44 on: 2005-05-23, 07:51:57 PM »
ok, good news: the game no longer crashes when it goes to the level select map, but bad news: 2 player doesn't occur at all, no 2nd screen at teh bottom, no 2nd player movement, so i guess that line disabled all the 2 player script. also, in order to stop the screen from jittering, you need to change the scroll rates to like 30x30 (can be higher, but these work for all intensive purposes).
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy