Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Plugins: JPS SDK 1.02 Download (Plugin & Host examples)  (Read 15289 times)

0 Members and 1 Guest are viewing this topic.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Plugins: JPS SDK 1.02 Download (Plugin & Host examples)
« on: January 11, 2008, 05:11:19 pm »
Okay thought this would make it easier by starting a new topic where I can update the first post with changes to the SDK archive for download.

If you need changes to be made please post a request here with changes necessary. I can't possibly keep up with the other threads ;) Also if you have made a new example source to include in the SDK please attach it to a post and I will inlcude it in a new release.

Also I will try to keep the document (ReadMe.txt) up to date with the commands thread each time I post a new version.
« Last Edit: January 22, 2008, 11:32:45 am by headkaze »

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b5 Download (Plugin & Host examples)
« Reply #1 on: January 11, 2008, 05:34:37 pm »
Did you get my sound plug from the other thread to work? It the first real plugin and succesfully tested with BlitzMax without crashes (tested all used commands directly from there).

Soon I which you take the dll wrapper I made when I created some document. You might include the sound example to your SDK as well, if you wich.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

Barry Barcrest

  • I'm only in it for the lack of money
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1620
  • Last login:November 09, 2021, 09:54:17 am
  • Simple Plan
    • E-Touch Jukebox
Re: Plugins: JPS SDK 1.0b5 Download (Plugin & Host examples)
« Reply #2 on: January 11, 2008, 05:34:49 pm »
Cheers Buddy

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b5 Download (Plugin & Host examples)
« Reply #3 on: January 11, 2008, 06:58:15 pm »
It seen you forgot to close the library with my sound plugin?

My plugin works fine with ALL functions used, but just crash when exit (Shutdown does also called fine)...

Alsowice nice work  :D
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b5 Download (Plugin & Host examples)
« Reply #4 on: January 11, 2008, 07:17:55 pm »
It seen you forgot to close the library with my sound plugin?

My plugin works fine with ALL functions used, but just crash when exit (Shutdown does also called fine)...

Alsowice nice work  :D

I dont think so, like I said in the other thread it works fine in two other languages so how can you say it's not working? There is something wrong in your plugin code.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: Plugins: JPS SDK 1.0b5 Download (Plugin & Host examples)
« Reply #5 on: January 11, 2008, 09:10:45 pm »
In your Initialize() routine I think you should check whether hDll != 0 before you use it ... correct?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b5 Download (Plugin & Host examples)
« Reply #6 on: January 11, 2008, 09:22:07 pm »
In your Initialize() routine I think you should check whether hDll != 0 before you use it ... correct?

Yeah good point updated to check if hDll is null first.

Also updated to match 1.0b6 command set.

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b6 Download (Plugin & Host examples)
« Reply #7 on: January 11, 2008, 09:45:14 pm »
If it works fine in all BlitzMax, Pure Basic and Delpth (and sure, also in C++), but Crash under VB6, there is of course a bug in somewhere runtime files in that language, since it only crash on that language?

But what it really happens, I dont know, and why it diddent like the sound libary (Pure Basic using dx7 for sound) under VB6?

I pretty sure it dosent crash in VB.Net where they got the bug fixed...

There is a 1.0n7 (it going fast), but only some document errors and addations, no command addation.

But I do think I using BASS.dll or Windows Media Player (I dosent know PureBasic use that?) for the sound libray for the little plugin (hence it good idea to rename dll's to jps) to get it combatible with Visual Basic 6...

Trying that another day. Godnight.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: Plugins: JPS SDK 1.0b6 Download (Plugin & Host examples)
« Reply #8 on: January 11, 2008, 09:51:25 pm »
thanks for the hard work
« Last Edit: January 11, 2008, 09:56:02 pm by unclet »

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Plugins: JPS SDK 1.0b6 Download (Plugin & Host examples)
« Reply #9 on: January 11, 2008, 10:04:11 pm »
Oh It seems Space Fractal Sound PlugIn (that crashes on exit) is in the current SDK.  Is that intentional?  ;)

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b6 Download (Plugin & Host examples)
« Reply #10 on: January 11, 2008, 10:39:14 pm »
There is a 1.0n7 (it going fast), but only some document errors and addations, no command addation.

Okay updated to match 1.0b7 ReadMe.txt. Also added your Pure Basic example

Oh It seems Space Fractal Sound PlugIn (that crashes on exit) is in the current SDK.  Is that intentional?  ;)

Oops :) Yes that was me doing some testing. I've put back the old plugin for testing.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #11 on: January 12, 2008, 01:59:14 am »
Updated VB6 Host example to only read files with .jps extension.

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #12 on: January 12, 2008, 03:33:18 am »
Updated VB6 Host example to only read files with .jps extension.

Sweet. 

Is this your dad building your new Jukebox?  Can he help me with mine?
« Last Edit: January 12, 2008, 03:38:58 am by loadman »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #13 on: January 12, 2008, 03:56:18 am »
I notice you don't have a picture of yourself on your own website for me to post. Now you have to post us a picture of your own noggin loadman, that's only fair.

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #14 on: January 12, 2008, 04:27:51 am »
I notice you don't have a picture of yourself on your own website for me to post. Now you have to post us a picture of your own noggin loadman, that's only fair.

Wow, Just did a search, First I was trying to find a picture of me with my cab and then it came down to just finding a pic of me. I have heaps of my wife and kids. It's obvious to me now that they never pick up the camera. Anyway here I am.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #15 on: January 12, 2008, 04:33:38 am »
Wow, Just did a search, First I was trying to find a picture of me with my cab and then it came down to just finding a pic of me. I have heaps of my wife and kids. It's obvious to me now that they never pick up the camera. Anyway here I am.

I meant a recent photo of your loadman, not the one your wife took 10 years ago lol j/k

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #16 on: January 12, 2008, 04:35:15 am »
Wow, Just did a search, First I was trying to find a picture of me with my cab and then it came down to just finding a pic of me. I have heaps of my wife and kids. It's obvious to me now that they never pick up the camera. Anyway here I am.

I meant a recent photo of your loadman, not the one your wife took 10 years ago lol j/k

Ohh you mean a recent one of me with your woman  :laugh2:

OK Better stop now as the thread Police will be waking up soon   ;D

Better get back to work on the 'JukeStub' Plug-in tester
« Last Edit: January 12, 2008, 04:37:48 am by loadman »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #17 on: January 12, 2008, 04:56:19 am »
Ohh you mean a recent one of me with your woman  :laugh2:

OK Better stop now as the thread Police will be waking up soon   ;D

Better get back to work on the 'JukeStub' Plug-in tester

Yeah the one you took when I was out banging your wife  :laugh2:

Okay I think this thread has been derailed enough.. back to the serious world of coding  :angel:
« Last Edit: January 12, 2008, 05:05:57 am by headkaze »

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #18 on: January 12, 2008, 08:27:33 am »
Do I need to place all the files from in the "C++\Release\" directory into my"\plugins\" directory or do I just use the "VB6 Host\plugins\JukePlugin.jps" file only?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #19 on: January 12, 2008, 05:07:13 pm »
Do I need to place all the files from in the "C++\Release\" directory into my"\plugins\" directory or do I just use the "VB6 Host\plugins\JukePlugin.jps" file only?

All you need is the the one dll (jps file)

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #20 on: January 12, 2008, 05:26:06 pm »
Supported Jukeboxe Software in the readme: Should you not state coming too? None are released as I note, but it of course these tree we see first.

You should add the updated SoundEvent Plugin that finally works with your VB6 host without crash (I created a seperate threads for sound playing, so I could kill that thread before exit) (and maybe credits me for the pure basic code).

Your TestPlugin works fine from BLitzMax  to :D.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #21 on: January 12, 2008, 05:32:01 pm »
Supported Jukeboxe Software in the readme: Should you not state coming too? None are released as I note, but it of course these tree we see first.

You should add the updated SoundEvent Plugin that finally works with your VB6 host without crash (I created a seperate threads for sound playing, so I could kill that thread before exit) (and maybe credits me for the pure basic code).

Your TestPlugin works fine from BLitzMax  to :D.

Update to archive..

- Added a "COMING SOON" to supported Jukebox software
- SoundEvent example updated (You were already credited for Pure Basic code)
- Changed C++ and Delphi examples to out a JukePlugin.jps file (instead of dll)

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: Plugins: JPS SDK 1.0b7 Download (Plugin & Host examples)
« Reply #22 on: January 12, 2008, 05:51:54 pm »
Also, you might want to change the name of your JPS file you generate.

Instead of JukePlugin.jps ... how about something more descriptive such as "JukePluginTest.jps"     ;D

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b10 Download (Plugin & Host examples)
« Reply #23 on: January 13, 2008, 06:53:39 am »
Updated to 1.0b10

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b10 Download (Plugin & Host examples)
« Reply #24 on: January 13, 2008, 07:37:35 am »
 :D, but please update the readme.txt again.

For some reason the text description from Juke_Command("JUKE_SONGLIST_MOVE_SONG", "oldPosition|newPosition") got deleted.

I guess along this is a beta, would it not been better just to point to the thread for the readme until it got finalized for the readme.txt (I sometimes correct one destription minor error without update the number).

Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b10 Download (Plugin & Host examples)
« Reply #25 on: January 13, 2008, 04:33:17 pm »
:D, but please update the readme.txt again.

For some reason the text description from Juke_Command("JUKE_SONGLIST_MOVE_SONG", "oldPosition|newPosition") got deleted.

I guess along this is a beta, would it not been better just to point to the thread for the readme until it got finalized for the readme.txt (I sometimes correct one destription minor error without update the number).

It's easy enough for me to copy and paste it each time I do a release. I just hope there isn't going to be a 100 of them ;)

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b13 Download (Plugin & Host examples)
« Reply #26 on: January 13, 2008, 07:58:42 pm »
Updated to 1.0b13

Barry Barcrest

  • I'm only in it for the lack of money
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1620
  • Last login:November 09, 2021, 09:54:17 am
  • Simple Plan
    • E-Touch Jukebox
Re: Plugins: JPS SDK 1.0b13 Download (Plugin & Host examples)
« Reply #27 on: January 13, 2008, 08:39:36 pm »
Each time i think your done you guys keep changing it. I make releases of my software almost daily so i think i will hang back on this until you have finalised it all.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: Plugins: JPS SDK 1.0b13 Download (Plugin & Host examples)
« Reply #28 on: January 13, 2008, 08:45:18 pm »
headkaze

1) I get a type mismatch error on the following RED line.  You can reproduce this by running your VB6 Host "Project.vbp".  Just run it, click on the TEST button and then click OK to close the popup-window

Quote
Private Function ParamsToString(ParamArray Params() As Variant) As String
    Dim sParams As String
    Dim I As Integer
   
    For I = 0 To UBound(Params)
        sParams = sParams & Params(I)
        If I < UBound(Params) Then
            sParams = sParams & "|"
        End If
    Next
   
    ParamsToString = sParams
End Function

2) Space Fractal had two SONG_REPEAT commands defined and I think you grabbed the wrong one to put in your code.  The other one I believe will be removed since it has been replaced by "JUKE_FEATURE_REPEAT_MODE" command.   Anyway, I think you want the "SONG_REPEAT" command which is listed below:
Quote
JukeCommand(JUKE_SONG_REPEAT, "")
this is sent when a song HAS finished playing and the song will immediately be played again.


3) You have a "LoopType" parameter defined for the "SONG_RESTART" command although Space Fractal has it defined like this now:
Quote
JukeCommand(JUKE_SONG_RESTART, "")
this is sent when a song HAS NOT finished playing and is requested to start playing from the beginning again


4) You have the "JUKE_VOLUME_SET" command defined, but Space Fractal defines it like this now:
Quote
Juke_Command("JUKE_VOLUME_CHANGE", "system|curVolumeLevel|minVolumeLevel|maxVolumeLevel")
A new value volume have been changed or set....
« Last Edit: January 13, 2008, 10:25:06 pm by unclet »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b13 Download (Plugin & Host examples)
« Reply #29 on: January 13, 2008, 11:55:36 pm »
headkaze

Bah! Stupid VB6 hehe okay fixed :)

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b13 Download (Plugin & Host examples)
« Reply #30 on: January 14, 2008, 02:18:47 am »
Barcrest, hehe. That way it was in beta on some time.

I dedicated first release my software on sunday (to make sure all commands is correct and not changed), to make sure it finally done.

So, Barcrest, can you wait to release your software on that day, so we got a simulate release with UncleT Jukebox, Freebox and MultiJuke?

I want to have a news to the arcadecontrols mainpage about it.

Any betas should been internal goes to these plugin writers that want them (Like LoadMan and HeadKaze).

There is beta 14, but it just small spotted errors, no others.

I do update my sound plug in soon to sync with beta 13+.
« Last Edit: January 14, 2008, 02:53:40 am by Space Fractal »
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Plugins: JPS SDK 1.0b13 Download (Plugin & Host examples)
« Reply #31 on: January 14, 2008, 04:32:30 am »
C'mon Headkaze  b14 b14!!!  Don't make me come over there!!!!   :o    ;)

You are only 3291.63 kms  (Miles: 2045.38) away you know   :)

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: Plugins: JPS SDK 1.0b13 Download (Plugin & Host examples)
« Reply #32 on: January 14, 2008, 07:18:47 am »
I believe headkaze's current b13 version is actually now b14 ..... he just did not change the name of the file.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b16 Download (Plugin & Host examples)
« Reply #33 on: January 14, 2008, 10:24:33 pm »
Okay hopefully synced with 10b16 now. Let me know if I've missed anything.

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b17 Download (Plugin & Host examples)
« Reply #34 on: January 15, 2008, 05:36:52 am »
I found a page how to convert UTF8 to 16 bit strings and back. It look like VB6 can use unicode to support various alphabet out here, not just Latin:

http://www.nonhostile.com/howto-convert-byte-array-utf8-string-vb6.asp

I think that should include that into the SDK.

They actuelly might only needed by songinfo and sending and retrive Letters trouch

I should maybe add a return value at JUKE_APP_UNICODE() to tell if the plugin itself support unicode or not (so the jukebox application just send ASCII string as it are, even char>128 is used)?
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b17 Download (Plugin & Host examples)
« Reply #35 on: January 15, 2008, 06:32:54 am »
Space Fractal: You seem to be the only person concerned with Unicode. What if the plugin author codes his plugin using UTF8? Do you expect them to have to deal with Unicode?

Since the return values are PCHAR you could infact have them return a PWCHAR since they are both pointers. But I doubt Loadman or anyone else will want to support both UTF8 and Unicode.

BTW This is all you need to do it in VB6...

StrConv(Bytes, vbUnicode)

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Plugins: JPS SDK 1.0b17 Download (Plugin & Host examples)
« Reply #36 on: January 15, 2008, 06:45:53 am »
etc danish Æ Ø Å use unicode, and example Russia, when used in a english OS. Japanse example require unicode.

The problem is unicode through the wrapper do NOT use 16 bit at all and need to been ASCII (Char) for compatible. Yes I know some plugins might not support unicode, hence I want to been UTF8, because its compatible with ASCII.

UTF8 is backward compatible with 8 bit ASCII, because it use a 8 bit encode string with any WCHARS over 128. Hence it use a special encode system to convert from WCHAR to CHAR and the other way.

This is make sure Jukebox application without unicode works with plugins only using CHAR.

That is why I added JUKE_APP_UNICODE() to tell about it. I guess it's should also return a value back, if the plug-in use 16 bit strings or not (ETC the plugins is NOT unicode aware)?


« Last Edit: January 15, 2008, 06:51:57 am by Space Fractal »
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0b17 Download (Plugin & Host examples)
« Reply #37 on: January 15, 2008, 08:19:55 pm »
Version 1.0 Released!

- Synced with 1.0 Command list (let me know of any errors)
- Added a Timer to the VB6 Host example to show two way communication. Press a key when running the VB6 Host example and it will trigger a PLUGIN_EVENT_KEYDOWN event and output the ASCII character.

NOTE: The PLUGIN_EVENT_KEYDOWN does not seem to trigger inside the VB6 IDE so to see the example run just double click the Project1.exe.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: Plugins: JPS SDK 1.0 Download (Plugin & Host examples)
« Reply #38 on: January 15, 2008, 11:08:31 pm »
uughh ...... I just spent an hour trying to figure what the heck was crashing my application and finally figured out it was your new plugin code   :banghead:   again  :angry:

Starting your new VB6Host/Project1.vbp makes it come up fine although when I click the "X" button on the top/right of the window to exit the application, then VB crashes.

How about creating a new version  ::)

off to bed ......  :)
« Last Edit: January 15, 2008, 11:12:21 pm by unclet »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Plugins: JPS SDK 1.0 Download (Plugin & Host examples)
« Reply #39 on: January 15, 2008, 11:52:07 pm »
uughh ...... I just spent an hour trying to figure what the heck was crashing my application and finally figured out it was your new plugin code   :banghead:   again  :angry:

Starting your new VB6Host/Project1.vbp makes it come up fine although when I click the "X" button on the top/right of the window to exit the application, then VB crashes.

How about creating a new version  ::)

off to bed ......  :)

How about you go jump in the lake?  :angry: