User Tag List

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

Thread: Zim.qst

  1. #1
    Admiral Zim's Avatar
    Join Date
    Oct 2012
    Posts
    388
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    1,702
    Level
    13
    vBActivity - Bars
    Lv. Percent
    83.73%

    Cool Zim.qst

    http://sdrv.ms/1aArCRG

    This quest file has the scrolling for sideview and overhead done pretty much perfectly.

    The rest of what it's going to be able to do is up to you anyway if you are going to make a quest file with it.
    If you know scripting you'll know what I mean when you follow the function's layout.. It's all pretty self explanatory. A simple copy/paste of the code with a definition of what combo property shows up where will get you what you need.

    I'm going to be taking a prolonged hiatus from actually doing the coding myself, and the description in the script file isn't done very well, so I'll still answer questions if there are any here and on PureZC every now and then if and when they arise.

    A few notes on how it's written for the scrolling though:

    In the combo set, there's some *INCOMPLETE* combo spots where I started to combo out the items graphics and the enemies combos. When those combos are placed on the map that has the scrolling on layer 0, they appear on the game. There's a method I wrote that says the enemies only start moving when the sword hits them, or is a certain distance from them: That's optional. You could just as easily put it back the way it was originally so that the enemies spawn immediately upon Link (or whatever your character is) coming into proximity of the combo, like the items are set up for. Just duplicate what the item's thing looks like if you're having trouble doing that and it's what you want.


    Also, I don't remember, and I can't access the file right now because I don't have ZC anymore, and I'm not going to download it on this computer I'm on atm, but I think the isSolidScreen() function is outdated..
    I was redoing the code so that it could do an isSolidScrolling(x,y) function that didn't require a current screen or DMAP input that would calculate the current screens drawn on the actual screen (by current screens I mean as they are drawn in ZQ, by actual screens I mean what is drawn in ZC while playing the game.) and it could do an isSolid() function based on the actual (x,y) as the screens are drawn.

    I'm sure that if you are smart enough to figure out how all that stuff really mathematically works out, you're probably smart enough to write it up yourself though. It was basically calculated by the overall X,Y of Link's postion on the ENTIRE DMap, the numbers Z[0] and Z[1] are/were the X, Y.
    S==Screen. x==current X as drawn in ZC. y==current Y as drawn in ZC. (if you look at the script, these digits are actually b and a, respectively, and calculated by a similar function to this, but backwards:)
    int a=Z[0]-Z[5]; if(a<0)a=0;
    ScreenX=Floor((a+x)/256);
    int b=Z[1]-Z[7]; if(b<0)b=0;
    ScreenY=Floor((b+y)/176);
    So given that Screen X is the distance by this calculation in Screens from the leftmost side, i.g. Screen 0 would make Screen X=0, screen 17 would make screen X=1, etc...
    and that Screen Y does the same thing, for the Y axis from the top down...
    From that we can calculate from Z[0] and Z[1] that
    S=ScreenX + ScreenY*16.

    After that I had plugged that in and modified the isSolidScreen to not need input args for the current DMap or screen by using Game->GetCurDMap()+1, plus1 because Link is always on the "subfloor" for scrolling, you could see why if you read how it works.., as the arg for Game->GetComboSolid(GetCurDMap()+1,S,x,y).
    The x and y are already precalculated for you. It's all already precalculated for you... in fact you don't even really need to know this unless you are going to do what I was planning on and modify Ghost.z to work with scrolling....
    Replace the isSolid with isSolidScrolling and the rest of the things with Game->GetComboType, GetComboFlag, etc.. and use the b and a integers as they are calculated instead of only what it looks like in ZQ and presto, ghost.z for scrolling.

    Any questions about this feel free to write me on this thread, PM , or ask someone else who knows what they're doing.

    Have a nice day!

  2. #2
    Admiral Zim's Avatar
    Join Date
    Oct 2012
    Posts
    388
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    1,702
    Level
    13
    vBActivity - Bars
    Lv. Percent
    83.73%
    Does anyone have this file? Someone ERASED my life. Hehehehe! Anyway, I'd appreciate it if you could repost it for me if you do.

    (Bump)
    Last edited by Zim; 04-30-2014 at 02:13 PM.

  3. #3
    Admiral Zim's Avatar
    Join Date
    Oct 2012
    Posts
    388
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    1,702
    Level
    13
    vBActivity - Bars
    Lv. Percent
    83.73%
    Still looking to get this file back. A fresh build of ZC with the knowlege in my brain would produce a better than before scrolling platformer but I would really like to have this file back.

  4. #4
    Cor Blimey! CJC's Avatar
    Join Date
    Dec 2002
    Location
    Fading into the darkness
    Age
    35
    Posts
    1,398
    Mentioned
    150 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,621
    Level
    25
    vBActivity - Bars
    Lv. Percent
    1.39%
    I checked my records and I don't seem to have a copy. Sorry.

  5. #5
    Username Kaiser SUCCESSOR's Avatar
    Join Date
    Jul 2000
    Location
    Winning.
    Age
    37
    Posts
    4,436
    Mentioned
    152 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    10,563
    Level
    30
    vBActivity - Bars
    Lv. Percent
    52.03%
    Quote Originally Posted by Zim View Post
    Does anyone have this file? Someone ERASED my life. Hehehehe! Anyway, I'd appreciate it if you could repost it for me if you do.

    (Bump)
    Here is what I have:

    https://dl.dropboxusercontent.com/u/...79/AGN/zim.qst
    https://dl.dropboxusercontent.com/u/...AGN/Zimbug.qst

    Not sure if either are what you are looking for.

  6. #6
    Admiral Zim's Avatar
    Join Date
    Oct 2012
    Posts
    388
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    1,702
    Level
    13
    vBActivity - Bars
    Lv. Percent
    83.73%
    I found a DoM.qst file that has is for sure the most recent file with the "debugger" scripts in it, because I know for sure I saved them both on 6/4 of last year, the menu with the mouse that can be used to warp link to specific maps, X Y, etc., spawn items, adjust other variables of the user's choosing without having to go back into ZQ and do it from there...
    The Zim.qst file that is the lowercase file and the one I have are outdated though, so if anyone has the one that was made and posted on 6/4 I could totally use it, although I did find another one that is slightly more recent than zim.qst: it has the Mirror of the Moon item on it, that scans the current DMAP and locates items, bombable walls, etc., and points an arrow to their locations.

  7. #7
    Gel ZeldaPlayer's Avatar
    Join Date
    Aug 2014
    Location
    USA
    Age
    22
    Posts
    12
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    392
    Level
    7
    vBActivity - Bars
    Lv. Percent
    19.6%
    How did you manage to make put scrolling into your quest? I tried looking to see, but nothing.

  8. #8
    Admiral Zim's Avatar
    Join Date
    Oct 2012
    Posts
    388
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    1,702
    Level
    13
    vBActivity - Bars
    Lv. Percent
    83.73%
    Math, lots and lots of math.
    The files are here in this thread somewhere.. Check the dropbox links to get them.
    The post right above yours actually. It was a group effort. Once the Game->GetComboAt(Dmap,Screen,x,y) and the Game->SetComboAt(SAMETHING) functions were available I wrote a fake collision function that acts just like the normal collision, tricked the graphics by displaying the layers around the current layer so the character isn't actually on the layer(s) with the graphics, and wrote another function that moves the layers together graphically. From there I wrote a function that makes the interaction with the combotypes happen by association with a coordinate based function that cross-references the player's location with the actual dmap/screen grid by making a mathmatical formula for automatic equivalent graphing of the x,y coordinates of the entire map.
    The sideview is very similar except for that the standing on the platforms required the original collision instead of my pseudo collision, and because the combos don't move on the Y plane in less increments than 16 pixels (although on the X axis they can), I just did the same thing as overhead exceot for moving the screen in a player is fixed in the center of screen fashion whenever his or her coordinate is above a certain point on the map so they always land on the platforms correctly, and the x axis is done by the psuedo collision. In sideview the player can even wall-kick and grab the walls.
    The code could easily be modified to the effect that the player could only grab the wall on a ledge though.

    I just checked the dropbox links and the files are still there.
    They are slightly outdated compared to some of the progress I have made since, but they would be a great start for an aspiring coder.

    I would strip the thing down to only the functions that are used for scrolling and start from there to use it as a template quest, and get rid of the clock and exp. points stuff. The battle points system and levelling up were perfected but in that file they are buggy, although it is only like one line is a booboo or an arrangement issue. I had it working though so it is easily fixable again, I just haven't had a decent system since.

    So to use this in a game of your own, I would recommend exporting the script from the qst file, then going through the functions and deleting all the functions that aren't to do with the scrolling and interacting with combos while scrolling.

    Some time in the near future I will strip it down to that and put it in a LoZ 1 file for a template for everyone who needs it.

    With those new diaganal 8-ways from CJC I could whip up a LoZ meets Mother in a few days. That sounds sweet.
    :) It would look like it anyways with the diagonal movement and scrolling.
    Last edited by Zim; 08-25-2014 at 01:30 AM.

  9. #9
    Admiral Zim's Avatar
    Join Date
    Oct 2012
    Posts
    388
    Mentioned
    9 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    1,702
    Level
    13
    vBActivity - Bars
    Lv. Percent
    83.73%
    Here I make for you a quest template and explanatory comments in the scripting page.

    https://onedrive.live.com/embed?cid=...CIdLRBFrft1vJg

    If y'all butter up the devs real good they might make you a build that the DMAP grid size could be edited using ZQuest, and the functions I wrote could be integrated to do the rest for you.
    You'd only need to draw maps to make a scrolling quest.
    Last edited by Zim; 08-29-2014 at 04:26 PM.

  10. #10
    Gel ZeldaPlayer's Avatar
    Join Date
    Aug 2014
    Location
    USA
    Age
    22
    Posts
    12
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    392
    Level
    7
    vBActivity - Bars
    Lv. Percent
    19.6%
    So the flags won't trigger tiles? You can walk through walls, I know you worked really hard with math. There were just a few bugs.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social