Jump to content
Cidiomar

RGSS3 Input Full + UTF8Input [Error found and fixed]

Recommended Posts

Hi, this is an rewrite of the RGSS3 Input with some features added.
224 keys in keytable
Input.release? added
Full Keyboard Layout Compatibility
UTF8 reading with accents

Link: http://rgss3help.tk/?p=145

Link: http://www.himeworks.com/2013/07/07/full-input-keyboard/

Thanks by the attention, bye o/

EDIT: an incompatibility error was found by DanteMcGee, it's now fixed.
The Error Was: VXAce uses custom key codes assigned with the symbols, and that codes are diferents from default key codes.

Edited by Cidiomar

Share this post


Link to post
Share on other sites

A-a-awesome!! This is perfect! Even better than Yanfly's for RMVX, I daresay :D

 

Thanks, Cidiomar! Big Thanks!!

Share this post


Link to post
Share on other sites

Hi there,

 

i love the script thank you for it.

 

But i have a question about it! I want to open the savemenu with the butten B, but with the normal branch it won't work.

I guess it musst be done with the script somehow but i don't understand exactly how.

 

Could you please explain it short?

 

sry for bad english!

Share this post


Link to post
Share on other sites


 

 

#--------------------------------------------------------------------------

# * Default Keys, you can configure here instead of by pressing F1.

#--------------------------------------------------------------------------

UP = [KEYMAP[:UP]]

DOWN = [KEYMAP[:DOWN]]

LEFT = [KEYMAP[:LEFT]]

RIGHT = [KEYMAP[:RIGHT]]

A = [KEYMAP[:SHIFT]]

B = [KEYMAP[:ESCAPE]]

C = [KEYMAP[:RETURN ]]

X = []

Y = []

Z = []

L = [KEYMAP[:PRIOR]]

R = [KEYMAP[:NEXT]]

F5 = [KEYMAP[:F5]]

F6 = [KEYMAP[:F6]]

F7 = [KEYMAP[:F7]]

F8 = [KEYMAP[:F8]]

F9 = [KEYMAP[:F9]]

SHIFT = [KEYMAP[:SHIFT]]

CTRL = [KEYMAP[:CONTROL]]

ALT = [KEYMAP[:MENU]]

 

In this part you configure the default keys, add an key to the array, and it will be used to active the key

Edited by Cidiomar

Share this post


Link to post
Share on other sites

Cool, I didn't see this before, I have a few questions:

 

- Is this compatible with Latinamerican Keyboards? (with Ñ, á, and the chinese hat? ^ )

- Is this compatible with the default input methods? (Conditional branch by Input for example).

 

Thanks.

Share this post


Link to post
Share on other sites

it's compatible with all accents and symbols, and is compatible with the standards of VXAce Input.

But someone said that dir4 and dir8 are different from VXAce common Input.

 

This script use your keyboard layout so, with Windows is compatible with your keyboard, this script is too.

Edited by Cidiomar

Share this post


Link to post
Share on other sites

In this part you configure the default keys, add an key to the array, and it will be used to active the key

 

First thank you for the answer, but i think i havn't explained the problem well.

 

I have configured the buttons already (example: B = NUMPAD3), but when i disable the menu on a map and do a branch that says "if button B is pressed open save menu" it wont work.

 

I tested that branch in another project without your script and it worked, so my question is how can i do it with your script?

 

Maybe its a bug or i just do sometihing wrong i don't no.

Share this post


Link to post
Share on other sites

Hey!Thanks!

VXAce don't use symbols in conditional branches in events, it's uses key codes.

I'll update this now

really thank you!

 

EDIT: I've fixed the error.

Edited by Cidiomar

Share this post


Link to post
Share on other sites

It works! Great job!

 

Thanks for the fast help and keep up the nice work!

 

You're welcome, and thanks by the report!

I'm planning to post an DLL version of this input, will be the same as it, but with more performance

(Yeah, I already create it, but I need to post my abstraction script, or adapt the script to run without it)

 

bye o/

Edited by Cidiomar

Share this post


Link to post
Share on other sites

Few frames into the title screen, this script throws a TypeError on line 370: 'no implicit conversion from nil to integer'

 

 

354  #--------------------------------------------------------------------------
355  # * Determines whether the button corresponding to the symbol sym is
356  # currently being pressed again.
357  # Unlike trigger?, takes into account the repeated input of a button being
358  # held down continuously.
359  #
360  # If the button is being pressed, returns TRUE. If not, returns FALSE.
361  #--------------------------------------------------------------------------
362  def self.repeat?(keys)
363	if keys.is_a?(Numeric)
364 	 key = keys.to_i
365 	 return @repeated[key] == 1 || @repeated[key] == 16
366	elsif keys.is_a?(Array)
367 	 return keys.any? {|key| @repeated[key] == 1 || @repeated[key] == 16}
368	elsif keys.is_a?(Symbol)
369 	 if SYM_KEYS.key?(keys)
370 	   return SYM_KEYS[keys].any? {|key| @repeated[key] == 1 || @repeated[key] == 16}
371 	 elsif KEYMAP.key?(keys)
372 	   return @repeated[KEYMAP[keys]] == 1 || @repeated[KEYMAP[keys]] == 16
373 	 else
374 	   return false
375 	 end
376	end
377  end

 

 

I don't see anything wrong.

 

Edit: Found the problem.

 

142  UP	= [KEYMAP[:W]]
143  DOWN  = [KEYMAP[:S]]
144  LEFT  = [KEYMAP[:A]]
145  RIGHT = [KEYMAP[]]

 

Corrected:

 

142  UP	= [KEYMAP[:LETTER_W]]
143  DOWN  = [KEYMAP[:LETTER_S]]
144  LEFT  = [KEYMAP[:LETTER_A]]
145  RIGHT = [KEYMAP[:LETTER_D]]

 

Everything is fine now. It might do for an update of this script to include instructions.

Edited by ophyress

Share this post


Link to post
Share on other sites


 

#--------------------------------------------------------------------------

# * Default Keys, you can configure here instead of by pressing F1.

#--------------------------------------------------------------------------

UP = [KEYMAP[:UP]]

DOWN = [KEYMAP[:DOWN]]

LEFT = [KEYMAP[:LEFT]]

RIGHT = [KEYMAP[:RIGHT]]

 

The original script don't use letters as directinals

Share this post


Link to post
Share on other sites

The link is not working... could someone direct me to the script please?

Edit; Nevermind, I am stupid. Haha.

Edited by Jaysynn

Share this post


Link to post
Share on other sites

The second link says I don't have permission to view the page, even though I'm logged in.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted