- View New Content
-
Getting Started
-
Tutorials
Tutorial Categories
Tutorials Main Page Installation and Setup Downloadable TutorialsROM Adjustments
Number of Balls Adjustments Volume Adjustments
-
Visual Pinball Tables
VP 8 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP 9 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP9 Cabinet Tables
All Full Screen Cabinet Full Screen B2S Cabinet Spanned Cabinet Tables Media Packs ROMsVPX Tables
All VPinMAME Recreations VPX- - /VPinMAME - MOD Tables VPX Recreations VPX Originals Media Packs ROMs VR
-
Frontend Media & Backglass
Media Packs
Complete Media Packs Wheel Logos VideosBackglasses
dB2S Animated Backglasses UVP Animated Backglasses Topper Images
- Future Pinball Tables
-
Design Resources
Main Resources
Table Templates Playfield Images Image Library Sound Library Key CodesVP Guides
VP8 Guide - English VP8 Guide - Deutsch VP9 Guide - English VP9.1.x Guide - English VP Object Guide VPM DocumentationFuture Pinball Resources
Playfield Images 3D Model LibraryFuture Pinball Guides
FP Script Guide Big Draco Script Guide FP Table Design Guide FP DMD Guide
- Other Features
- Bug Tracker
- Image Gallery
- Blogs
-
More
FP and Pinmame - theoretically possible
Started By
highrise
, Jan 04 2011 04:40 PM
192 replies to this topic
#141
Posted 22 January 2011 - 12:19 PM
I have also good news. I improved the code to send information from FP to VPinmame. I tested several full-screen resolutions (1680x1050, 1360x768, 1280x1024) and it works fine.
Put the files in the Tables folder and run Pinmame.exe. Wait a few seconds. Press Coin or Start
http://www.megaupload.com/?d=ZM28MJWE
Translated with Google.
#144
Posted 22 January 2011 - 08:03 PM
QUOTE (Manofwar @ Jan 22 2011, 01:19 PM) <{POST_SNAPBACK}>
I have also good news. I improved the code to send information from FP to VPinmame. I tested several full-screen resolutions (1680x1050, 1360x768, 1280x1024) and it works fine.
Put the files in the Tables folder and run Pinmame.exe. Wait a few seconds. Press Coin or Start
http://www.megaupload.com/?d=ZM28MJWE
Translated with Google.
Put the files in the Tables folder and run Pinmame.exe. Wait a few seconds. Press Coin or Start
http://www.megaupload.com/?d=ZM28MJWE
Translated with Google.
I gave it a go.
Sorry to ask stupid question: is Pinmame.exe the compiled Pinmame.ahk?
I ask because when I run Pinmame.exe it starts FP nicely, after few moments it starts pinmame and loads the rom, but the rom says that the coin door is open. In your Pinmame.ahk I see that you put there the code to close the door. Or it is some weird bug or maybe you attached exe compiled from an earlier version of your script which did not close the door.
#145
Posted 23 January 2011 - 04:48 PM
i spent what seems like forever trying to get the alphanumeric display to work from pinmame to FP. Finally I made a function which converts the 16 bit number for the display into a number which corresponds to the one in FP. However, it seems I don't understand fully how Pinmame sends this data, because whilst I can see letters appearing, they don't get reset or wiped.
the ChangedLEDs output from pinmame has three values - led number, followed by two more. Can anyone explain to me exactly how these two numbers work? thanks.
the ChangedLEDs output from pinmame has three values - led number, followed by two more. Can anyone explain to me exactly how these two numbers work? thanks.
#146
Posted 23 January 2011 - 05:06 PM
QUOTE (highrise @ Jan 23 2011, 09:48 AM) <{POST_SNAPBACK}>
i spent what seems like forever trying to get the alphanumeric display to work from pinmame to FP. Finally I made a function which converts the 16 bit number for the display into a number which corresponds to the one in FP. However, it seems I don't understand fully how Pinmame sends this data, because whilst I can see letters appearing, they don't get reset or wiped.
the ChangedLEDs output from pinmame has three values - led number, followed by two more. Can anyone explain to me exactly how these two numbers work? thanks.
the ChangedLEDs output from pinmame has three values - led number, followed by two more. Can anyone explain to me exactly how these two numbers work? thanks.
I think learning how to use a search feature on a forum could be a huge help.
http://www.vpforums....s...ost&p=13416
And the vpm source code - a search of the file contents for changedled's shows Controller.cpp
/*-- add changed lamps to array --*/
for (ix[0] = 0; ix[0] < uCount; ix[0]++) {
ix[1] = 0;
varValue.lVal = chgLED[ix[0]].ledNo;
SafeArrayPutElement(psa, ix, &varValue);
ix[1] = 1; // Changed segments
varValue.lVal = chgLED[ix[0]].chgSeg;
SafeArrayPutElement(psa, ix, &varValue);
ix[1] = 2; // Current value
varValue.lVal = chgLED[ix[0]].currStat;
SafeArrayPutElement(psa, ix, &varValue);
}
So this would mean that value 0 (the first one) is the LED number
Value 1 (the second) is the value of the total of segments that changed
Value 2 (last) is the current value of the digit grouping
Each series machine has a slightly unique segment ordering for displays, and other games like LOTR use changedLEDs for actual LED lamps in the machine
generally, the segments are ordered like this:
CODE
A
F B
G
E C
D
H
F B
G
E C
D
H
These values are binary encoded, meaning segment A top horizontal bar is a value of 1
B, top right is 2
C bottom right is 4
D bottom is 8
E bottom left is 16
F top left is 32
G middle is 64
H comma if it is used is 128
For 16 digit segments it is possible for their binary value to be higher than 255
Here are some sample templates - I might gave a gottlieb table or two slightly inaccurate with the comma numbering, as some GTS3 machines use a dot and a comma below it, whereas others use the full comma as a single entity. It's a file attachment of vp tables.
http://www.vpforums....mp;hl=templates
Build a fire, vipers love the heat.
#147
Posted 23 January 2011 - 05:42 PM
btw - some displays you will have to use the DMD overlay hologram thingie to remap individual dots, as Black is missing a bunch of different type segment displays in Future Pinball. -- ie Bally 6803 displays will not be accurate, there is no available true 7 segment display, you'll have unlit segments visible that were never on the actual display, incorrect placement, etc etc. The PROC guys did a great job on their segmented displays using a DMD. Even using the clock one, you'll have to cover up the commas somehow. ?
Edited by destruk, 23 January 2011 - 05:45 PM.
Build a fire, vipers love the heat.
#148
Posted 23 January 2011 - 06:10 PM
thanks. I did actually do a search for this information, studied a lot of tables and spent many hours trying to work it all out. I figured out pretty much everyhting you have described here - the only thing I didn't see what that the second value held the changed value rather than actual value. Thanks for that!
The character definitions for FP are different to this, so I have translated them. It remains to be seen whether it will be quick enough however.
The character definitions for FP are different to this, so I have translated them. It remains to be seen whether it will be quick enough however.
#149
Posted 23 January 2011 - 08:29 PM
You're welcome. I'm glad we understand each other. Earlier VP tables used a lookup table to convert the number output to individual letters for textboxes too. Of course the numbers would be different depending on what display type you're playing with. As far as speed goes, the less actual math you need to perform the faster it will be.
Edited by destruk, 23 January 2011 - 08:31 PM.
Build a fire, vipers love the heat.
#150
Posted 24 January 2011 - 12:23 AM
I know! I can send the data across quite well - for a 32 digit display I use six hex characters for each reel. The first two are the digit number, and the other four are the value (0-65535).
The problem is that (as we all know) FP is very hand-holdy, and it doesn't give you full control over each individual bit sent to the display - you can only send text. So what you have to is define the characters on the fly, using a different pattern map to the one real tables use - on top of that you have to add commas by actually putting them in the text. I'm not complaining though, since we are not exactly using FP to do something it was designed for - just the opposite in fact! I even tried using 32 single-digit displays but that didn't really work either.
Most likely what I can do is get it to display all the common characters, letters of the alphabet and so on. Then on top of that I can see about adding other characters used for effects.
The problem is that (as we all know) FP is very hand-holdy, and it doesn't give you full control over each individual bit sent to the display - you can only send text. So what you have to is define the characters on the fly, using a different pattern map to the one real tables use - on top of that you have to add commas by actually putting them in the text. I'm not complaining though, since we are not exactly using FP to do something it was designed for - just the opposite in fact! I even tried using 32 single-digit displays but that didn't really work either.
Most likely what I can do is get it to display all the common characters, letters of the alphabet and so on. Then on top of that I can see about adding other characters used for effects.
#151
Posted 25 January 2011 - 05:52 AM
I experimented quite a lot with the alpha display, and it's very impractical for both pinmame display and for FP->pinmame. This is mainly because of how the refresh works. You can define characters but the whole update thing is very inflexible and unco-operative. For example, if you set the refresh rate to a high number, say 100000 milliseconds, then you can't change that rate until that time is up - so there's no way to turn off the refresh flicker. In the end, to test the thing I actually built something in VP which would simulate the FP system, so I could check it wasn't me throwing spanners in the works.
I have to say, I've always felt restrictions should only ever be there to stop the user from crashing the program, not to force them to do something in a specific way. I think users should be free to do whatever they can with a program as long as they don't hack it or do stuff that will deliberately crash it. The more I use the program, the more I find this happening, but that's FP for you - coding on rails. You step off the rails and you end up crashing the program or getting told 'no'. It's like getting shushed every time you try to sing... this prison of a program may be pretty, but I do find myself missing the rugged open space of VP
Anyway, aside from that and the vast amount of inappropriate apostrophes (anyone else notice those? just a pet hate of mine), it's not so bad. Manofwar has merged our two programs so we have a sort of prototype input-output system. But I think I've been spending too long on this just now and I need to take a break.
I have to say, I've always felt restrictions should only ever be there to stop the user from crashing the program, not to force them to do something in a specific way. I think users should be free to do whatever they can with a program as long as they don't hack it or do stuff that will deliberately crash it. The more I use the program, the more I find this happening, but that's FP for you - coding on rails. You step off the rails and you end up crashing the program or getting told 'no'. It's like getting shushed every time you try to sing... this prison of a program may be pretty, but I do find myself missing the rugged open space of VP
Anyway, aside from that and the vast amount of inappropriate apostrophes (anyone else notice those? just a pet hate of mine), it's not so bad. Manofwar has merged our two programs so we have a sort of prototype input-output system. But I think I've been spending too long on this just now and I need to take a break.
#152
Posted 25 January 2011 - 07:54 AM
Now they are together the two forms of communication, it is easier to send packages (LEDs, solenoids), has request for FP. I am experimenting with this and the LED displays, and have achieved good results. Although I am getting some errors in reading the files romX.txt.
Highrise this afternoon (in Europe) I send you the new files.
Highrise this afternoon (in Europe) I send you the new files.
Edited by Manofwar, 25 January 2011 - 07:54 AM.
#154
Posted 25 January 2011 - 05:33 PM
Can't you set the delay to 0? Most segmented machines don't have a boredom delay. Since they refresh 60? times per second, a minimal interrupt for checking for changed segments would be every 16ms. You can probably get away with multiples of 16 and nobody would really notice the discrepency.
Build a fire, vipers love the heat.
#157
Posted 25 January 2011 - 09:44 PM
nope, you can't set the delay to zero. If you try, it gets set to 5ms. As I said, hand-holdy all the way.
Thanks for the kind words guys, though I don't think I have the support of the whole community - some think I'm hacking the program to do this, which I'm not.
I wish we were all one big happy pinball family I really do. I have no issue with anyone at all and I'd love to make peace and have some of those really talented guys work on the many hundreds of tables that could be built once we get this thing working. Perhaps in time they will come round to the idea.
Thanks for the kind words guys, though I don't think I have the support of the whole community - some think I'm hacking the program to do this, which I'm not.
I wish we were all one big happy pinball family I really do. I have no issue with anyone at all and I'd love to make peace and have some of those really talented guys work on the many hundreds of tables that could be built once we get this thing working. Perhaps in time they will come round to the idea.
#158
Posted 26 January 2011 - 10:27 AM
QUOTE (highrise @ Jan 25 2011, 10:44 PM) <{POST_SNAPBACK}>
Thanks for the kind words guys, though I don't think I have the support of the whole community - some think I'm hacking the program to do this, which I'm not.
I wish we were all one big happy pinball family I really do. I have no issue with anyone at all and I'd love to make peace and have some of those really talented guys work on the many hundreds of tables that could be built once we get this thing working. Perhaps in time they will come round to the idea.
I wish we were all one big happy pinball family I really do. I have no issue with anyone at all and I'd love to make peace and have some of those really talented guys work on the many hundreds of tables that could be built once we get this thing working. Perhaps in time they will come round to the idea.
Rest assured that this is exactly what will happen. There were protests against railways, bicycles and cars when they were invented, but now horse carriages are just a tourist attraction.
Some people, just don't like to see FP working better or having working rom support for their own reasons, moralizing most of the time is an excuse, just like cotton producers lobby in 30s' launched public campaign to change perception of hemp to make it a dangerous narcotic and de-legalize it to protect their own income.
#160
Posted 26 January 2011 - 12:42 PM
QUOTE (sza @ Jan 26 2011, 04:27 AM) <{POST_SNAPBACK}>
QUOTE (highrise @ Jan 25 2011, 10:44 PM) <{POST_SNAPBACK}>
Thanks for the kind words guys, though I don't think I have the support of the whole community - some think I'm hacking the program to do this, which I'm not.
I wish we were all one big happy pinball family I really do. I have no issue with anyone at all and I'd love to make peace and have some of those really talented guys work on the many hundreds of tables that could be built once we get this thing working. Perhaps in time they will come round to the idea.
I wish we were all one big happy pinball family I really do. I have no issue with anyone at all and I'd love to make peace and have some of those really talented guys work on the many hundreds of tables that could be built once we get this thing working. Perhaps in time they will come round to the idea.
Rest assured that this is exactly what will happen. There were protests against railways, bicycles and cars when they were invented, but now horse carriages are just a tourist attraction.
Some people, just don't like to see FP working better or having working rom support for their own reasons, moralizing most of the time is an excuse, just like cotton producers lobby in 30s' launched public campaign to change perception of hemp to make it a dangerous narcotic and de-legalize it to protect their own income.
In my case you are dead wrong! Why wouldn't I want FP to be all that it can be? Why wouldn't I want FP to out shine VP, which in some ways it already does. My stand is entirely over what Black would want and endorse. I would love for this second that Black would come in here and say, "Do what you want, I don't mind". I really wish he would and I really wish he would open source it so these don't have to be work arounds. And you can bet your arse, I would be all over it like stink on SH*T!!!
As an author of tables, I really don't mind and have given my blessing to anybody using parts or modifying my tables. I am all for the community of pinball players. Yes in all forms!
Some author are more tight with their creations and want to grant permission. We have all learned to respect this fact, so why is it that a pinball simulator/editor should be any different? Black has dedicated unbelievable amounts of time into FP. It is his baby, one of his joys. Regardless of what everybody thinks of Black, this is his authored work, and without him condoning what you guys are doing, I think it is as bad if not worse then modifying a table without permission.
What you are saying is that if I were to build an external program or script that could alter what the author had intended the table to do without actually altering the table, this is alright. In that case, I could easily make a program that overlays anybody's table with my own graphics, hence changing it's appearence, but yet not changing the table itself. Is this right?
You are basically saying that there is no honor among thieves. Black isn't here, so lets have at it. If I condoned this, then I condon modifying tables without permission. So I cannot. It's that simple. Now you can justify it anyway you like, if it makes you feel good about it.
I assure you that my opinions on this subject are not steered by VP or FP, and I take offense to the fact that someone would say that to me. If you are someone that could/would say that to me, then you are the problem that divides the community, not me.
EDIT: I did not post this to start a big fight over this. I am just explaining my opinion on the subject. If you guys are comfortable and feel justified by working on this by all means go ahead. I am only telling you why I am not getting involved. Peace be with you brother pinheads, and lets stop all this fighting over VP vs FP nonsense. If one chooses to lean one way or the other, that is only because of their comfort zone and their choice of tool. Nothing more.
Edited by rascal, 26 January 2011 - 01:28 PM.



Top
















are all trademarks of VPFORUMS.