Comments (12)
Ait, just committed it, seems to work fine: 4a8b0f3
(Small change: raw_key_states
is in MKXP
module instead of System
)
from mkxp.
I built mkxp from git and got your wrapper script from here:
http://pastebin.com/zXW1hdrx
Then tried to start Sin Unsullied (http://legacyblade.com/downloads/SinUnsullied/SinUnsullied_B002.zip), which uses the Blizzard ABS script, and after fixing the usual syntax issues, I got this error:
[user32:GetKeyboardLayout] [0]
win32_wrap.rb:228:in `call': undefined method `WIN32' for Scancodes:Module (NoMethodError)
from win32_wrap.rb:321:in `call'
from 107:Blizz-ABS Part 2:7532:in `update'
from 101:Tons of Addons Part 2:695:in `block in main'
from 101:Tons of Addons Part 2:693:in `loop'
from 101:Tons of Addons Part 2:693:in `main'
from 108:Blizz-ABS Part 3:6715:in `main'
from 131:Main:15:in `<main>'
Is it supposed to work out of the box or it still needs some changes to the used scripts?
Thanks a lot for adding this Win32API emulation, by the way :)
from mkxp.
@openmac I have fixed all syntax errors I saw, please try again.
from mkxp.
Thanks, I download the updated win32_wrap.rb from pastebin and here is the new error:
[user32:GetKeyboardLayout] [0]
win32_wrap.rb:230:in `block in call': undefined method `contains' for #<Hash:0x0000010211d6d8> (NoMethodError)
from win32_wrap.rb:228:in `each'
from win32_wrap.rb:228:in `call'
from win32_wrap.rb:321:in `call'
from 107:Blizz-ABS Part 2:7532:in `update'
from 101:Tons of Addons Part 2:695:in `block in main'
from 101:Tons of Addons Part 2:693:in `loop'
from 101:Tons of Addons Part 2:693:in `main'
from 108:Blizz-ABS Part 3:6715:in `main'
from 131:Main:15:in `<main>'
from mkxp.
@openmac: Try replacing contains
in line 230 with key?
.
from mkxp.
Thanks, here is the new error:
[user32:GetKeyboardLayout] [0]
win32_wrap.rb:236:in `block in call': undefined method `setbyte' for #<Array:0x0000010217e870> (NoMethodError)
from win32_wrap.rb:228:in `each'
from win32_wrap.rb:228:in `call'
from win32_wrap.rb:321:in `call'
from 107:Blizz-ABS Part 2:7532:in `update'
from 101:Tons of Addons Part 2:695:in `block in main'
from 101:Tons of Addons Part 2:693:in `loop'
from 101:Tons of Addons Part 2:693:in `main'
from 108:Blizz-ABS Part 3:6715:in `main'
from 131:Main:15:in `<main>'
from mkxp.
Welp, blind fixing bug really wasn't a good idea. I have put up a new revision that works (tested).
from mkxp.
Thanks, it now starts without any error but in the game's initial screen that asks whether to choose Full Screen or not, no matter what key I press, it does not seem to be registered, so it is stuck there.
from mkxp.
New version up.
from mkxp.
It works now :)
There are other problems that I think they do not have anything to do with the keyboard and are issues with the game scripts Ruby 1.8.x syntax.
Thanks again.
Edit: I fixed the game scripts syntax issues and it seems to work perfectly, you are awesome!
from mkxp.
here's my current win32api wrapper script that makes use of it.
Any reason this wrapper isn't part of the Git repo? (And independently of that, what's the license for that wrapper? Same as mkxp itself?)
from mkxp.
@JeremyRand the reason is that I didn't consider it good quality code, just barely enough to make certain projects work. As for license, feel free to use it under CC0.
from mkxp.
Related Issues (20)
- Fluidsynth-related compilation error on Arch Linux HOT 2
- Search for mkxp.conf in more paths HOT 3
- Some (maybe) helpful font size stuff!
- High-level RPG Maker MV emulation support aka "mkmv" HOT 5
- Error "The RGSS script seems to be stuck and mkxp will now quit." HOT 6
- Fonts are completely broken HOT 1
- How compile? and another dunno HOT 2
- incorrect serialization of multi-dimensional tables if {y,z}size <= 1
- BGM should not be played before ME when calling me_play and bgm_play together
- Expect retrieved value to be the same as assigned value HOT 3
- Error 'Script 'fuyllscreen' line 14: NameError occureduninitialized constant Module::Win32API' HOT 2
- Video reproduction implementation missing. HOT 5
- Best Way to Detect if Running mkxp? HOT 1
- Does mkxp recognize multiple RTPs? HOT 2
- openReadEnumCB just gives up if a closely matching filename is found
- pathCache search keeps searching even after file is found
- Window content won't draw outside of a 640x480 region HOT 2
- Sound system initialization should not be compulsory
- Error With PKGConfig and CMake HOT 1
- Sudden crash : Script 'Zeus Map Effects' - line 85: No MethodError occured. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkxp.