dMZX Forums: MZXsvn for PSP - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

MZXsvn for PSP Help

#1 User is offline   killthechikenz 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 29-August 09

Posted 29 August 2009 - 11:43 PM

Could anyone here help me with getting MZXsvn for PSP to run properly?

It runs perfectly on my psp, but I'm using the zzt2mzx converter (also works perfectly) but the problem is that I can't figure how to configure a control on my PSP to simulate a "T" keystroke (for torches of course).

Advice or a fixed config.txt would be greatly appreciated.
0

#2 User is offline   Exophase 

  • Laughing on the inside.
  • Group: DigiStaff
  • Posts: 7,155
  • Joined: 23-October 00
  • Gender:Male
  • Location:Cleveland, OH

Posted 30 August 2009 - 12:16 AM

Not sure if you already know or not, but MZX allows keypresses to be simulated with joystick presses via config.txt (which also allows including other config files). There should be pad config file for PSP somewhere, that shows how to set it up. Let me know if you have that and we can go from there. Look around for all the .txt's included.
~ ex0 has a kickass battle engine, without it you sux0rz! without it you sux0rz! ~

"The fact that I say I've one of the best, is called honesty." -Akwende
"Megazeux is not ment to be just ASCII, it is ANSI!" - T-bone6
"I hate it when you get all exo on me." - emalkay

Exophase can what Rubi-cant.
exoware is ware ur ware is exoware
ps. not loking 4 new membrs kthx
0

#3 User is offline   killthechikenz 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 29-August 09

Posted 30 August 2009 - 03:02 AM

View PostExophase, on Aug 30 2009, 12:16 AM, said:

Not sure if you already know or not, but MZX allows keypresses to be simulated with joystick presses via config.txt (which also allows including other config files). There should be pad config file for PSP somewhere, that shows how to set it up. Let me know if you have that and we can go from there. Look around for all the .txt's included.


i do have it, but i still dont know how..
0

#4 User is offline   Wervyn 

  • I can see you
  • Group: DigiStaff
  • Posts: 1,855
  • Joined: 24-December 00
  • Gender:Male
  • Location:Caras Galadhon

Posted 30 August 2009 - 04:23 AM

I don't know exactly how this corresponds to the PSP layout, since I'm not PSP guy. If someone has this specific config file, I could probably explain it, but barring that you may just have to experiment.

The first thing you want to look at is this thread, specifically the big keyboard image posted at the bottom. This is your handy reference for all things key-code related. Gamepad and joystick mappings use the key_pressed value, which is the lower value on each key. So for example, LEFT is 276, T is 116, etc.

Second, open up your config file. If it HAS instructions about what setting corresponds to which PSP button, so much the better. You can find the setting for Square, say, and set it to 116, and now square is the T key. If not, then judging from the default config file what you want to do is something like this.

Config settings for gamepad controls are of the form "joyXaxisY = A, B" and "joyXbuttonY = A". X is a number defining which controller input you're talking about (almost certainly 1 in this case), Y is the number of the button or the access, and A and B are corresponding key codes. So, count all of the buttons on the PSP controller (D-Pad = two axes, thumbstick = two axes, and 8 buttons I think, I don't actually own one of the things), and write an entry in order for each, going across the keyboard. That is, joy1button1 = 49 (1 key), joy1button2 = 50 (2 key), etc. I'd recommend mapping the axes to up/down/left/right and WASD, as follows: joy1axis1 = 276,275; joy1axis2 = 273,274; joy1axis3 = 97,100; joy1axis4 = 119,115.

Then, write a quick little MZX world to test all this. Stick a robot with the following code on an empty board:
: "loop"
cycle 1
goto "key_&key_pressed&"
goto "loop"
: "key_49"
* "~fButton 1 pressed"
goto "loop"
: "key_50"
* "~fButton 2 pressed"
goto "loop"
: "key_51"
* "~fButton 3 pressed"
goto "loop"
: "key_52"
* "~fButton 4 pressed"
goto "loop"
: "key_53"
* "~fButton 5 pressed"
goto "loop"
: "key_54"
* "~fButton 6 pressed"
goto "loop"
: "key_55"
* "~fButton 7 pressed"
goto "loop"
: "key_56"
* "~fButton 8 pressed"
goto "loop"
: "key_57"
* "~fButton 9 pressed"
goto "loop"
: "key_58"
* "~fButton 10 pressed"
goto "loop"
: "key_276"
* "~fAxis 1A pressed"
goto "loop"
: "key_275"
* "~fAxis 1B pressed"
goto "loop"
: "key_273"
* "~fAxis 2A pressed"
goto "loop"
: "key_274"
* "~fAxis 2B pressed"
goto "loop"
: "key_97"
* "~fAxis 3A pressed"
goto "loop"
: "key_100"
* "~fAxis 3B pressed"
goto "loop"
: "key_119"
* "~fAxis 4A pressed"
goto "loop"
: "key_115"
* "~fAxis 4B pressed"
goto "loop"

Once loaded onto your PSP, this should allow you to determine which button corresponds to which number, whether the D-pad and analog stick correspond to the same thing or not, and which directions are up and down/left and right, and so on.

And if it doesn't work, blame Exophase, I think this was his system to begin with.

"With tongue firmly in cheek."
To lie is to change the truth.
..Ignorance is to be unaware of the truth.
....Incompetence is to be unable to grasp the truth.
......And escape is to run away from the truth.
It is useless to run, since the truth is right next to you.

-Wervyn
0

#5 User is offline   ajs 

  • carpe diem
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,614
  • Joined: 21-October 00
  • Gender:Male
  • Location:United Kingdom

Posted 30 August 2009 - 10:48 AM

If you get a recent snapshot from http://mzx.devzero.co.uk/snapshots/ the keycodes file should be present in docs.

Which SVN version are you using? Somebody reported palette problems on PSP Slim, I wonder you're seeing the same thing?

--ajs.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users