[XP] Blizz-ABS

Started by Blizzard, January 09, 2008, 08:21:56 am

Previous topic - Next topic

winkio

I just pasted the generated part 1 that you posted into a blank BlizzABS project and it worked fine.

If there is not a line specified, the error might be coming from a script call from an event that has incorrect syntax.

Stray

April 07, 2012, 07:44:02 pm #4721 Last Edit: April 08, 2012, 08:56:15 am by Stray
@winkio:
I changed the custom message script from "Hermes" to the much better "UMS (Universal Message System)" script.
This time it's only one script. I think it's much easier to find the new problem. :O.o:

UMS Script (text file)

The new issue: ShowHide


\e             - makes the window appear above the [ ] event
\nm          - is obvious
\t1 & \t2   - is the connection to the window or comic-bubble.
                          "t1" for speaking and "t2" for shouting. There's also "th" for thinking.


I'm very grateful to you all for your great help.

LiTTleDRAgo

Quote from: Bob423 on April 07, 2012, 12:10:51 pm
1. that script makes ALL events impassable unless i check "through" that will take a TON of work to fix myself. is there a way to set it to only do that if the event has a graphic specified?


Spoiler: ShowHide
Quoteclass Map_Battler < Game_Character
  #----------------------------------------------------------------------------
  # passable?
  #  x - x-coordinate
  #  y - y-coordinate
  #  d - direction
  #  Checks the passability. (pixel movement)
  #----------------------------------------------------------------------------
  def passable?(x, y, d)
    # calculate new coordinates
    nx = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
    ny = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
    # impassable if standing on impassable tile
    return false unless $game_map.self_passable?(x, y, d, self)
    # get pixel movement rate
    pix = $BlizzABS.pixel
    # if impassable in all directions
    unless $game_map.direction_passable?(nx, ny, 10 - d) &&
        $game_map.direction_passable?(nx, ny+pix-1, 10 - d) &&
        $game_map.direction_passable?(nx+pix-1, ny, 10 - d) &&
        $game_map.direction_passable?(nx+pix-1, ny+pix-1, 10 - d)
      # impassable
      return false
    end
    # new real coordinates
    rx, ry = nx * 128 / pix, ny * 128 / pix
    # get all events
    events = $game_map.events_only
    # rectangle
    rect = Rect.new(nx, ny, pix, pix)
    # Change direction (0,2,4,6,8,10) to obstacle bit (0,1,2,4,8,0)
    bit = (1 << (d / 2 - 1)) & 0x0f

    # if any event in the way
    if events.any? {|event|
        !event.through && (event.character_name != '' ||
        (event.tile_id >= 0 &&
        ($game_map.passages[event.tile_id] & bit != 0 ||
         $game_map.passages[event.tile_id] & 0x0f == 0x0f)))
&&
        $BlizzABS.util.rect_intersection(rect, event.phitbox)}
            #Rect.new(event.x * pix, event.y * pix, pix, pix))}
      # impassable
      return false
    end
    # if any battler that is not self or an event in the way
    if ($game_map.events.values - [self] - events).any? {|battler|
        !battler.through && battler.character_name != '' &&
        $BlizzABS.util.rect_intersection(rect, battler.phitbox)}
            #Rect.new(battler.x, battler.y, pix, pix))}
      # impassable
      return false
    end
    # passable so far
    return true
  end
end

Bob423


LiTTleDRAgo

Quote from: Bob423 on April 07, 2012, 12:10:51 pm
2. i used the "$game_system.minimap = 0" and "$game_system.minimap_button = false" the minimap disappears like it's supposed to, but the game freezes after that.


http://forum.chaos-project.com/index.php?topic=938.0

ToxicTrevor

Quote from: winkio on April 07, 2012, 02:55:18 pm
I just pasted the generated part 1 that you posted into a blank BlizzABS project and it worked fine.

If there is not a line specified, the error might be coming from a script call from an event that has incorrect syntax.


So what do you suggest? as the only event I have is the player spawn, and other than Blizz's scripts all my other scripts are the defaults.

winkio

upload a demo with the problem and I'll take a look.

Bob423

Quote from: LiTTleDRAgo on April 08, 2012, 12:45:33 am
Quote from: Bob423 on April 07, 2012, 12:10:51 pm
2. i used the "$game_system.minimap = 0" and "$game_system.minimap_button = false" the minimap disappears like it's supposed to, but the game freezes after that.


http://forum.chaos-project.com/index.php?topic=938.0


oh cool, thanks :D

ToxicTrevor


winkio

Oh, I should have picked up on this the first time.  You have the sneak control set to the ['] key, which is causing the problem.  We forgot to account for the fact that the name of the key needs to have an escape character.

Anyways, to get it to work for now, go into the script and change line 53 from

SNEAK = "Key[''']"


to

SNEAK = "Key['\\'']"


and everything should be all set.  I'll add this to the list of things to fix in the next version.

ToxicTrevor

Quote from: winkio on April 08, 2012, 02:36:19 am
Oh, I should have picked up on this the first time.  You have the sneak control set to the ['] key, which is causing the problem.  We forgot to account for the fact that the name of the key needs to have an escape character.

Anyways, to get it to work for now, go into the script and change line 53 from

SNEAK = "Key[''']"


to

SNEAK = "Key['\\'']"


and everything should be all set.  I'll add this to the list of things to fix in the next version.



Thanks! And glad I could help with that, hopefully if anyone else has this problem they will see our little back and forth conversation until the next version comes out.  :^_^':

Stray

April 08, 2012, 09:00:53 am #4731 Last Edit: April 08, 2012, 09:02:04 am by Stray
Please, that's my last problem. I think there will be no issues anymore if it is fixed... or did I forgot something else this time?
I'm very grateful to you all for your great help.

LiTTleDRAgo

Quote from: Stray on April 07, 2012, 07:44:02 pm
@winkio:
I changed the custom message script from "Hermes" to the much better "UMS (Universal Message System)" script.
This time it's only one script. I think it's much easier to find the new problem. :O.o:

UMS Script (text file)

The new issue: ShowHide


\e             - makes the window appear above the [ ] event
\nm          - is obvious
\t1 & \t2   - is the connection to the window or comic-bubble.
                          "t1" for speaking and "t2" for shouting. There's also "th" for thinking.





I can't see the image, what I saw in your image was


Stray

Alternative Uploads
Mirror 1: ShowHide

Mirror 2: ShowHide

Mirror 3: ShowHide
I'm very grateful to you all for your great help.

LiTTleDRAgo

Quote\e[42]\nm[Dat Girl]\t1
\e[042]\nm[Dat Hero]\t2


is there any difference between \e[42] and \e[042]?

could you upload a demo?

Skwig

Hello, me again :(
I've got 2 question/ problems:
1.) I've seen in BLIZZ-ABS games (can't remember the name, was on this site) that there were fires that when you touched, they dealt X damage (not a problem) but the problem is that the damage the fire dealt was bouncy, as if an enemy hit you. I don't think the fires were enemies because there were quite a lot of them and i think that would lag. Therefore, is there a way to make events hit you with the bouncy damage?

2.) Is there an "official" Blizz abs CMS? I know blizz made stormtronics, which is cool n stuff but I'm looking for a CMS that will have the Shortcuts from the pre-menu in the normal menu. I am making a 1 player game so I don't need the AI stuffs.. -> Is there a way to edit the script / Is there a CMS that has the shortcut setting in the menu, not in the pre-menu that Blizz-abs has

Thanks :3 Sorry for the wall of text

Futendra

Quote from: Skwig on April 09, 2012, 04:43:32 pm
2.) Is there an "official" Blizz abs CMS? I know blizz made stormtronics, which is cool n stuff but I'm looking for a CMS that will have the Shortcuts from the pre-menu in the normal menu. I am making a 1 player game so I don't need the AI stuffs.. -> Is there a way to edit the script / Is there a CMS that has the shortcut setting in the menu, not in the pre-menu that Blizz-abs has

Thanks :3 Sorry for the wall of text


With a little editting you can add a new tab that opens Scene_Hotkeys (I guess), that isn't too hard, then just place that CMS underneath Blizz-ABS and it should work just fine.

Magus

Will there ever be any chance for Blizz-abs JUMPING enemies. Because every time I attempt to make a boss/enemy jump, I always receive an error.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

Stray

April 10, 2012, 07:05:36 am #4738 Last Edit: April 10, 2012, 07:40:21 am by Stray
Quote from: LiTTleDRAgo on April 08, 2012, 11:18:03 pm
Quote\e[42]\nm[Dat Girl]\t1
\e[042]\nm[Dat Hero]\t2


is there any difference between \e[42] and \e[042]?

could you upload a demo?


There's no difference.
UMS-Demo here
if it doesn't work again:
Mirror 1
Mirror 2

I checked if it works with the normal, unchanged Blizz ABS. But it's somehow a different thing.
Here with my example-project:
Example
I'm very grateful to you all for your great help.

Boba Fett Link

Quote from: Skwig on April 09, 2012, 04:43:32 pm
1.) I've seen in BLIZZ-ABS games (can't remember the name, was on this site) that there were fires that when you touched, they dealt X damage (not a problem) but the problem is that the damage the fire dealt was bouncy, as if an enemy hit you. I don't think the fires were enemies because there were quite a lot of them and i think that would lag. Therefore, is there a way to make events hit you with the bouncy damage?


That was probably me in my small game 'The Game' Demo. The fire was not an enemy, just an event with a player touch. I inserted this call script:
$BlizzABS.actor_deal_damage(0, CONSTANT, 10)

And then had a move route command that made the Player step back.
This post will self-destruct in 30 seconds.