BLABS NP+ combatibility help

Started by nathmatt, May 22, 2009, 04:18:50 pm

Previous topic - Next topic

nathmatt

ok so i figured i would try to get BLABS to work with NP+ so i started buy deleting Mr.MO battle & mouse imput and was trying to add it to BLABS Control module here
Spoiler: ShowHide
module Input
  #----------------------------------------------------------------------------
  # Setup of Controls (ASCII)
  #----------------------------------------------------------------------------
  Key ={'A' => 65, 'B' => 66, 'C' => 67, 'D' => 68, 'E' => 69, 'F' => 70,
         'G' => 71, 'H' => 72, 'I' => 73, 'J' => 74, 'K' => 75, 'L' => 76,
         'M' => 77, 'N' => 78, 'O' => 79, 'P' => 80, 'Q' => 81, 'R' => 82,
         'S' => 83, 'T' => 84, 'U' => 85, 'V' => 86, 'W' => 87, 'X' => 88,
         'Y' => 89, 'Z' => 90,
         '0' => 48, '1' => 49, '2' => 50, '3' => 51, '4' => 52, '5' => 53,
         '6' => 54, '7' => 55, '8' => 56, '9' => 57,
         'NumberPad 0' => 45, 'NumberPad 1' => 35, 'NumberPad 2' => 40,
         'NumberPad 3' => 34, 'NumberPad 4' => 37, 'NumberPad 5' => 12,
         'NumberPad 6' => 39, 'NumberPad 7' => 36, 'NumberPad 8' => 38,
         'NumberPad 9' => 33,
         'F1' => 112, 'F2' => 113, 'F3' => 114, 'F4' => 115, 'F5' => 116,
         'F6' => 117, 'F7' => 118, 'F8' => 119, 'F9' => 120, 'F10' => 121,
         'F11' => 122, 'F12' => 123,
         ';' => 186, '=' => 187, ',' => 188, '-' => 189, '.' => 190, '/' => 220,
         '\\' => 191, '\'' => 222, '[' => 219, ']' => 221, '`' => 192,
         'Backspace' => 8, 'Tab' => 9, 'Enter' => 13, 'Shift' => 16,
         'Left Shift' => 160, 'Right Shift' => 161, 'Left Ctrl' => 162,
         'Right Ctrl' => 163, 'Left Alt' => 164, 'Right Alt' => 165,
         'Ctrl' => 17, 'Alt' => 18, 'Esc' => 27, 'Space' => 32, 'Page Up' => 33,
         'Page Down' => 34, 'End' => 35, 'Home' => 36, 'Insert' => 45,
         'Delete' => 46, 'Arrow Left' => 37, 'Arrow Up' => 38,
         'Arrow Right' => 39, 'Arrow Down' => 40, 'Mouse_Left' => 41,
         'Mouse_Right' => 42, 'Mouse_Middle' => 43}

but when it uses Input.pressed? (Input::Key['Mouse_Left'] it doesn't work what am i doing wrong
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

Mouse_Left, Mouse_Right and Mouse_Middle should be 1, 2 and 3 respectively and not 41, 42 and 43.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nathmatt

May 22, 2009, 04:36:47 pm #2 Last Edit: May 22, 2009, 04:37:50 pm by nathmatt
k i will try that but i still get the imput error
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

It should be "press?", not "pressed?". There's also quite a number of place where it should be "trigger?" and not "triggerd?". Blizz-ABS Input module doesn't act as if is external while Astromech's does.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nathmatt

Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

I did the same thing with NP+'s Input module in PNO and Tons' Input module yesterday so I knew. xD
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nathmatt

May 23, 2009, 07:24:37 am #6 Last Edit: May 23, 2009, 07:53:36 am by nathmatt
oh lol how would i add the mouse.x & y to it would at ad it in that module ?
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Sally

if you get this to work... you should get a medal!

Blizzard

I suggest adding "$mouse.update" into "def Input.update". The Game_Mouse class should do the rest. And remove $mouse.update from everywhere else.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nathmatt

May 23, 2009, 03:04:35 pm #9 Last Edit: May 23, 2009, 03:07:28 pm by nathmatt
getting an error with this any suggestions i think its cap lock but u dont have it in ur imput module

Spoiler: ShowHide
  Input::Carac.keys.each do |key|
       if Input.trigger?(Input::Carac[key])
         k = key.to_s.downcase
         if Input.press?(Input::Key['Shift'])
           k = key.to_s.upcase
           k = Input::Equ[key].to_s if key.kind_of? Numeric and @extended
         end
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Blizzard

I have no idea since you only gave me a chunk of the code. Try checking with "p key" what the key values actually contains.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.