[XP] Mouse Controller Enhancement Script

Started by nathmatt, March 24, 2010, 08:31:41 pm

Previous topic - Next topic

legacyblade

Thanks for that :D Now I can make mouse related games with no trouble!

nathmatt

update: 1.32 fixed a bug & added the ability to disable movement
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


Jragyn

you and valdred should get together and combine this script with his Event Drop-down System.

I think the two combined could make for some serious l33tness.


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

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


Jragyn

Well, that doesn't do us non-RMX-OS players any good, now does it? lol.


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

cyclope

I am using this with blizzabs and I think this would be beter that whene you click an enemy it will follow and attack him instead of positioning infront and then attack with right click because its get very tricky to attack an enemy. :wacko:
Things I Hate

1. People who point at their wrist asking for the time... I know where my watch is pal, where the hell is yours? Do I point at my crotch when I ask where the toilet is?

2. People who are willing to get off their a** to search the entire room for the TV remote because they refuse to walk to the TV and change the channel manually.

3. When people say "Oh you just want to have your cake and eat it too". Damn Right! What good is cake if you can't eat it?

4. When people say "it's always the last place you look". Of course it is. Why the hell would you keep looking after you've found it? Do people do this? Who and where are they?

5. When people say while watching a film, "did ya see that?" No Loser, I paid $12 to come to the cinema and stare at the damn floor!

6. People who ask "Can I ask you a question?"... Didn't give me a choice there, did ya sunshine?

nathmatt

update: 1.33 added configurable font size and color for the displayed message over an event & fixed a few bugs
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


legacyblade

I found a couple of bugs with the newest version.

When using blizzABS, you have to use the following script command to be able to use the features of your script.


$MCES.disabled = false
$MCES.movement_disabled = false


For some reason, blizzABS initializes them to true (at least the movement one, forgot to test which one was needed. I think it's just the movement, as you can still select things in the menu and see the cursor). Should be a simple fix.

Also, when using tons of addons for the required custom controls, there is a very odd bug. When you click on a non auto-event, nothing happens. But after you move to another location (after having clicked the non-responsive event), the event's code executes. This isn't the case with blizzABS. I don't use RMX-OS, so I can't test the bug in it.

Thanks again for making this script, it's really helping me out.

nathmatt

Quote from: legacyblade on June 22, 2010, 01:03:06 am
I found a couple of bugs with the newest version.

When using blizzABS, you have to use the following script command to be able to use the features of your script.


$MCES.disabled = false
$MCES.movement_disabled = false


For some reason, blizzABS initializes them to true (at least the movement one, forgot to test which one was needed. I think it's just the movement, as you can still select things in the menu and see the cursor). Should be a simple fix.


first i just for got to set it to false in the initialization just set it to false there also all events must have a graphic i prpobably for got to mention that so that you won't trigger unwanted events
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


legacyblade

June 22, 2010, 05:11:54 pm #69 Last Edit: June 22, 2010, 05:30:15 pm by legacyblade
alright, I'll set it to false in the initialization. But the problem with the events shows up on an event with a graphic. And only when I'm using the ToA custom controls rather than using blizzABS. The event activates just fine, it just waits to activate until I've told my character to move. I click on the event and nothing happens. Then once I click elsewhere (and I'm sure I'm not clicking on any events), the character will move to wherever I click, but it'll activate the event I previously clicked (even if I'm on the other side of the map). The event isn't set to auto. And this bug only shows up when using the ToA custom controls.

-edit

I found an odd bug that (as far as I can see) doesn't have any effect on your script. (it might in future updates though) Your Mouse initialize method doesn't get called. Not quite sure why this is, but my best guess is that the only time an instance of the mouse class is created in the original mouse controller script. (not sure why that'd do it, but for whatever reason your initialize method isn't being called. I found this out by working on an addon)

Also, using $MCES.movement_disabled = false doesn't work if you're using the ToA custom controls instead of blizzABS (which explains why I was only running into the problem of having to manually enable movement when I was using blizzABS)

nathmatt

im going to need some sort of demo because i cant reproduce that but it only activates when i click on it or after i reach the event
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


legacyblade

http://www.sendspace.com/file/c8ci2s

I included two demos. One that uses the entire ToA collection and just activates the custom controls. I also made a demo with the custom controls module extracted from ToA. (to show that it's a bug involving the ToA controls handling of your script, rather than a conflict with another addon). Neither of the bugs mentioned in this demo are present when you're using blizzABS instead of ToA.

nathmatt

update: 1.34 fixed bud where the player would move even when movement was disabled
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


legacyblade

Fixing that bug seems to have fixed the other bug! Thanks nathmatt!

nathmatt

July 21, 2010, 08:01:18 pm #74 Last Edit: August 09, 2010, 06:15:14 pm by nathmatt
Future updates auto will have a width and height and a new event name for locked doors both of these gave been created just working out a few bugs that & I still need to get a virus scanner

update: 1.40 added width, height,doors,event commands,pickup and drop items

update: 1.41 fixed a trade window bug with RMXOS
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


Arnon

I'm using this script with BlizzABS and my char not able to move around map. It moves toward the events, but get stuck when I click on tiles.
I found the reason in that line:
return if @get_path || !$game_player.passable?(@x,@y,0) ||

If I delete !$game_player.passable?(@x,@y,0) || condition he moves perfectly.
Or without deleting if I hold CTRL key he also moves.
Can u check this, pls.
Demo is attached.
http://www.mediafire.com/?xa5jc3n4idmx49h

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


Magicks

hi =)
I gets an error with the message
"Scrip´t 'Mouse Controller Enhancement Script' line 727: NameError occurred.
undefined local variable or method `mces_cdispose_trade_window´for #<Scene_Map:0x15d88208>
if trade window is closed

im use this scripts:
Global Switches and Variables for RMX-OS by Blizzard
Mouse Controller by Blizzard
Character Drop Down Menu by Nathmatt
and RMX-OS by Blizzard

can u help pls =(

nathmatt

update: 1.43 fixed small typo

to fix yourself just change this

mces_cdispose_trade_window


to this

mces_dispose_trade_window


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


ojp2010

I am having some problems with the Mouse controller system. It isn't letting player touch events work right, I have to click on the square the player touch event is. Like a map transfer event won't work unless I use the mouse to click the ground near it. Is there a way to fix this?

Scripts I am using and in current order
Spoiler: ShowHide

MapLinks
MAW 1.2
Mouse Menu
Skill Shop
Graveyard
MOG - Location_Name
MOG - Treasure_Name
MOG - Item Limit
Ton 0f Addons (1)
Ton 0f Addons (2)
Ton 0f Addons (3)
RMX-OS Options
RMX-OS Script
RMX-OS Global Switches & Variables
RMX-OS Versioning
Blizz ABS (1)
Blizz ABS (2)
Blizz ABS (3)
ABS HUD made by nathmatt
Blizz ABS Controller
Critical Sounds for ABS
Auto-Targeting for ABS
Advanced Time and Environment
Global Day-Night System
Mouse Controller
Mouse Controller Enhancement
Mouse Drop Down Menu
RMX-OS Main