Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Ineluki's KeyPatch
« previous next »
  • Print
Pages: [1] 2

Author Topic: Ineluki's KeyPatch  (Read 10123 times)

Offline Me5kuTis

  • Team Nightshift Coder & Artist
  • Associate
  • *
  • Posts: 159
  • Not so good at stuff..
Ineluki's KeyPatch
« on: September 09, 2005, 11:50:20 AM »
Rpg Maker 2000 artists from the mere beginning of rm2k wanted to have all keyboard support but makers passed but it wasn't implemented so Ineluki made his keypatch which allows us to use not only the whole keyboard but even the mouse. But still another problem occurs. The patch is in german and only the german RM2k community was able to use it. Well here's the tutorial everyone was looking for. Right here right now!
All you need is to download the Ineluki's keypatch from a mirror on the Nightshift team's site here :
http://Nightshift.tinklapiai.lt/loldir/Ineluki%20Key%20Patch%20v1.2.zip

And "Maker Ultimative" from here :
http://Nightshift.tinklapiai.lt/loldir/Maker%20Ultimative.zip

                                         INSTALATION

1. Extract Ineluki Key Patch v1.2.zip and go to Ineluki Key Patch v1.2/install. Open setup.exe and install the keypatch ON your rm2k.
If you installed it correctly ineluki's logo should appear when opening rm2k.

Congrats - You've just installed the keypatch to your project.

To start with - import all of the scripts from the "beispiele" folder to your game under the 'sound' category.


         
                                      USING THE MOUSE


 
Stuff you need. A common evend "Mouse" (Parallel process on switch [start] ON )

Have this code in it :

_________________________________________________

<>Play SE:    GetMousePos.script
<>Variable Ch:0001[Mouse ID] Set, MIDI Play Pos.(Tick)
<>FORK Optn:Var[Mouse ID] = -10
  <>Var Ch:0002[Mouse X] Set, MIDI Play Pos.(Tick)
  <>Var Ch:0003[Mouse Y] Set, MIDI Play Pos.(Tick)
  <>Var Ch:0004[Butons] Set, MIDI Play Pos.(Tick)
  <>Move Picture :    19, ( V [Mouse X], V [Mouse Y]), 0.0sec
  <>
: END Case
<>Wait:    0.0s.
<>
_________________________________________________




The Starter event (on the map) (Parallel Process) :
_________________________________________________

 PAGE I :

<>Play SE:    MidiTickOutput.script
<>Play SE:    MidiTickClear.script
<>Play SE:    MousesupportOn.script
<>Var Ch:0002[Mouse X] = 160
<>Var Ch:0003[Mouse Y] = 120
<>Show Picture:    19, cursor (160, 120)
<>ChangeSwitch:[start]-ON Set

 PAGE II (on [start] switch) (Push Key) :

<>
_________________________________________________

Buttons :
IF VAR [Mouse Buttons] = 1 (Left mouse button)
 BLABLABLA

IF VAR [Mouse Buttons] = 2 (Right mouse button)
 BLABLABLA

IF VAR [Mouse Buttons] = 3 (Both mouse button)
 BLABLABLA

Use mouse X/Y coordinates to make a button. For Example:

If VAR [Mouse X] above 160
  If VAR [Mouse X] below 170
    If VAR [Mouse Y] above 120
      If VAR [Mouse Y] below 140
        If VAR [Mouse Buttons] = 1
          Message : LOLPatch


!!!!!NOTE!!!!! : USE EXACTLY THE FIRST TO FOURTH VARIABLES FOR THE MOUSE OR IT WON'T WORK!!!

       
                                      USING THE WHOLE KEYBOARD
 

You'll need two 'call' common events called "KeyPatch ON" and "KeyPatch OFF"
One Parallel proces common event with switch [Keys] ON, Called "Keys Management"

The first one will have this code :

_________________________________________

<>Play SE:    MidiTickOutput.script
<>Play SE:    KeyList1.script          (Thats your script. I use the second but use whatever you like.)
<>Play SE:    KeySupportOn.script
<>Change Switch : [Keys] - ON Set
_________________________________________



The second one will have this code :

_________________________________________

<>Play SE:    MidiTickReset.script
<>Play SE:    KeySupportOff.script
<>Change Switch : [Keys] - OFF Set
_________________________________________


The third one will have this code :


_________________________________________

<>Play SE:    MidiTickClear.script
<>Wait:    0.0s.
<>Wait:    0.0s.
<>Wait:    0.0s.
<>Variable Ch:[Key ID] Sett, MIDI Play Pos.(Tick)
<>
_________________________________________

Now instead of doing the enter password command use a fork condition

<>FORK Optn:VAR[Key ID] = X
X is a number representing a certain key. You can check them out by opening your keylist.script.wav with the notepad.
Logged

Secondary leader of the Nightshift team.

New game on a new engine on our site! Check it out!

Offline LynX

  • MIDI maker
  • Initiate
  • *
  • Posts: 85
  • I have big sideburns
(No subject)
« Reply #1 on: September 09, 2005, 05:14:26 PM »
Thanks for making this thread, but I tried using the mouse. It didn't work. The cursor simply doesn't move at all. The buttons don't work.
Anything to fix this?

Didn't try the keyboard yet, but it can be good.



EDIT: Added "?".
Logged
What do you desire from this world?  Do you wish to live again? Do you want to erase your demise from the pages of history?

Offline Me5kuTis

  • Team Nightshift Coder & Artist
  • Associate
  • *
  • Posts: 159
  • Not so good at stuff..
(No subject)
« Reply #2 on: September 09, 2005, 06:15:59 PM »
Sorry forgot to add 'Maker Ultimativ' Fixed it. Try again.
Logged

Secondary leader of the Nightshift team.

New game on a new engine on our site! Check it out!

Offline SC3K

  • Member
  • Initiate
  • *
  • Posts: 78
  • ---
(No subject)
« Reply #3 on: September 09, 2005, 07:35:25 PM »
Alright, I got it to work! Thanks!
Logged

Offline LynX

  • MIDI maker
  • Initiate
  • *
  • Posts: 85
  • I have big sideburns
(No subject)
« Reply #4 on: September 09, 2005, 08:28:37 PM »
OK, tried it, but now it moves the char and the cursor doesn't move one bit. I don't need the mouse to move my char, I wanted to do a HUD where are some buttons that are accessible only by a mouse.

EDIT: Maybe I missed something from the manual, but it's 10:30 PM here and I have to go sleep. At the morning I'll look at it closer.
Logged
What do you desire from this world?  Do you wish to live again? Do you want to erase your demise from the pages of history?

Offline Dashman

  • Just too cool for this planet
  • Associate
  • *
  • Posts: 237
  • i like food
(No subject)
« Reply #5 on: September 09, 2005, 08:31:04 PM »
Hold on, I got something wrong. Let's say, I want a common event jumping process. How should it look if I want to jump with a? I tried to follow the instructions, but I got no luck
Logged

Offline Me5kuTis

  • Team Nightshift Coder & Artist
  • Associate
  • *
  • Posts: 159
  • Not so good at stuff..
(No subject)
« Reply #6 on: September 10, 2005, 05:31:51 AM »
@ LynX :
Redo the maker ultimativ and use the same tick's as susggested. That should work.

@ Dashman :
What Keylist script are you using?
Let's say I'm using the second one as it let's you use the whole keyboard instead of some added letters. I open it up in notepad and search for [a]. This is what I found

[a]
Action=registerKeyDownEvent
Key=a
Value=66
next=s

Explanation :

[a] - the name of the key
Action=registerKeyDownEvent - registers when the key is pressed down
Key=a - what key does it represent
Value=66 - It's value.
next=s - What's the next letter after a
_________

So now we have the value of 66. Now you just need a fork.
<>FORK optn:var[Key ID] = 66
  <>Move character ..........
<>END:Case
Logged

Secondary leader of the Nightshift team.

New game on a new engine on our site! Check it out!

Offline LynX

  • MIDI maker
  • Initiate
  • *
  • Posts: 85
  • I have big sideburns
(No subject)
« Reply #7 on: September 10, 2005, 07:29:04 AM »
FINALLY I GOT THE MOUSE TO WORK. I forgot to install Ineluki's Keypatch _sweat_ . Anyway, just one small problem. When I move the mouse a bit somewhere, then it will "jump' about 100 pixels in the opposite direction I moved the mouse. Also the movement of the cursor is laggy. How do I fix this?
Logged
What do you desire from this world?  Do you wish to live again? Do you want to erase your demise from the pages of history?

Offline Me5kuTis

  • Team Nightshift Coder & Artist
  • Associate
  • *
  • Posts: 159
  • Not so good at stuff..
(No subject)
« Reply #8 on: September 10, 2005, 10:36:39 AM »
The first one - Does it jump to the center of the screen ?
the second - add a wait 0.0 somewhere
Logged

Secondary leader of the Nightshift team.

New game on a new engine on our site! Check it out!

Offline LynX

  • MIDI maker
  • Initiate
  • *
  • Posts: 85
  • I have big sideburns
(No subject)
« Reply #9 on: September 10, 2005, 11:14:40 AM »
This is about the maximum movement with the mouse to the right...
Logged
What do you desire from this world?  Do you wish to live again? Do you want to erase your demise from the pages of history?

Offline LynX

  • MIDI maker
  • Initiate
  • *
  • Posts: 85
  • I have big sideburns
(No subject)
« Reply #10 on: September 10, 2005, 11:17:12 AM »
...and to the left...
Logged
What do you desire from this world?  Do you wish to live again? Do you want to erase your demise from the pages of history?

Offline LynX

  • MIDI maker
  • Initiate
  • *
  • Posts: 85
  • I have big sideburns
(No subject)
« Reply #11 on: September 10, 2005, 11:19:24 AM »
...before the cursor jumps here.


EDIT: Also, i added the "Wait 0.0" and the cursor lags like there was "Wait 0.1" instead. I know, it's not much, but it's irritating.
Logged
What do you desire from this world?  Do you wish to live again? Do you want to erase your demise from the pages of history?

Offline Dashman

  • Just too cool for this planet
  • Associate
  • *
  • Posts: 237
  • i like food
(No subject)
« Reply #12 on: September 10, 2005, 02:55:51 PM »
STILL NOT WORKING!
 :yell:

I made all the common events, I made a common event called JUMP:
< >Wait 0.0s.
< >Wait 0.0s.
< >Wait 0.0s.
< >Fork Optn. Varbl.[Key ID]=66
< >Move event...:     Hero, start jump, forward, forward, end jump
<>
<>End Case

What's wrong with it? :yell:
Logged

Offline Me5kuTis

  • Team Nightshift Coder & Artist
  • Associate
  • *
  • Posts: 159
  • Not so good at stuff..
(No subject)
« Reply #13 on: September 10, 2005, 03:58:02 PM »
Quote
Originally posted by Dashman
< >Wait 0.0s.
< >Wait 0.0s.
< >Wait 0.0s.
< >Fork Optn. Varbl.[Key ID]=66
< >Move event...:     Hero, start jump, forward, forward, end jump
<>
<>End Case


What The ? Why do you need those 0.0s. ?
Use one!
Logged

Secondary leader of the Nightshift team.

New game on a new engine on our site! Check it out!

Offline PyroAlchemist

  • STOP IT NOW!
  • Agent
  • *
  • Posts: 932
(No subject)
« Reply #14 on: September 10, 2005, 04:54:35 PM »
Alrighty. I made it all like it said up there for the mouse and It won't move. I'm confused now. I installed the patch too.
Logged
<img src="http://img20.imageshack.us/img20/4995/pyrotu5.png">

  • Print
Pages: [1] 2
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Ineluki's KeyPatch
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum