EmuNewz Network

Full Version: about ProOnline support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
(05-08-2014, 02:43 PM)onelight Wrote: [ -> ]to make jpcsp more friendly, I add some code by myself
just like this
Great!
Could you send me the changes as a patch file?

Also, I would prefer to activate ProOnline with a checkbox in the settings instead of using a different start script.
(05-09-2014, 06:38 AM)gid15 Wrote: [ -> ]
(05-08-2014, 02:43 PM)onelight Wrote: [ -> ]to make jpcsp more friendly, I add some code by myself
just like this
Great!
Could you send me the changes as a patch file?

Also, I would prefer to activate ProOnline with a checkbox in the settings instead of using a different start script.
Actually I just add 1 jTabbedPane, 6 jLabel and 2 jTextField.
I write only 4 line code, other code is generate by NetBeans IDE, also update languages( Zh, Zh-TW)

Code:
setStringFromSettings(metaServerTextField, "network.ProOnline.metaServer");
setStringFromSettings(broadcastAddressTextField,"network.broadcastAddress");
Code:
setStringToSettings(metaServerTextField, "network.ProOnline.metaServer");
setStringToSettings(broadcastAddressTextField,"network.broadcastAddress");
[attachment=16371]

As a coder I just a beginner, forgive my Coding Style and bug (if it have)
(05-09-2014, 07:20 AM)onelight Wrote: [ -> ]As a coder I just a beginner, forgive my Coding Style and bug (if it have)
It looks good! Smile

Could you also add a checkbox to enable/disable ProOnline and enable/disable the client/server port shifts (when running 2 Jpcsp's on the same PC).

If you have any questions about coding, don't hesitate to PM me...
(05-09-2014, 11:46 AM)gid15 Wrote: [ -> ]
(05-09-2014, 07:20 AM)onelight Wrote: [ -> ]As a coder I just a beginner, forgive my Coding Style and bug (if it have)
It looks good! Smile

Could you also add a checkbox to enable/disable ProOnline and enable/disable the client/server port shifts (when running 2 Jpcsp's on the same PC).

If you have any questions about coding, don't hesitate to PM me...

I also want add that checkbox, but I don't know how to do. It isn't easy for a beginner.
(05-09-2014, 12:22 PM)onelight Wrote: [ -> ]
(05-09-2014, 11:46 AM)gid15 Wrote: [ -> ]
(05-09-2014, 07:20 AM)onelight Wrote: [ -> ]As a coder I just a beginner, forgive my Coding Style and bug (if it have)
It looks good! Smile

Could you also add a checkbox to enable/disable ProOnline and enable/disable the client/server port shifts (when running 2 Jpcsp's on the same PC).

If you have any questions about coding, don't hesitate to PM me...

I also want add that checkbox, but I don't know how to do. It isn't easy for a beginner.

If you want I can add it for you, keeping your original code.
But if you wish to do it yourself and learn more about Java, there's a very good collection of tutorials here: http://docs.oracle.com/javase/tutorial/index.html

Check the GUI tutorial with NetBeans IDE. It's very easy to follow and quite complete. Smile
(05-09-2014, 02:36 PM)Hykem Wrote: [ -> ]
(05-09-2014, 12:22 PM)onelight Wrote: [ -> ]
(05-09-2014, 11:46 AM)gid15 Wrote: [ -> ]
(05-09-2014, 07:20 AM)onelight Wrote: [ -> ]As a coder I just a beginner, forgive my Coding Style and bug (if it have)
It looks good! Smile

Could you also add a checkbox to enable/disable ProOnline and enable/disable the client/server port shifts (when running 2 Jpcsp's on the same PC).

If you have any questions about coding, don't hesitate to PM me...

I also want add that checkbox, but I don't know how to do. It isn't easy for a beginner.

If you want I can add it for you, keeping your original code.
But if you wish to do it yourself and learn more about Java, there's a very good collection of tutorials here: http://docs.oracle.com/javase/tutorial/index.html

Check the GUI tutorial with NetBeans IDE. It's very easy to follow and quite complete. Smile

Think you, please add it.
I try to add a ButtonGroup to enable/disable ProOnline and enable/disable the client/server port shiftsSmile
[attachment=16392]
code file
[attachment=16393]
code SettingsGUI.java
Code:
setStringFromSettings(metaServerTextField, "network.ProOnline.metaServer");
        setStringFromSettings(broadcastAddressTextField,"network.broadcastAddress");
        setBoolFromSettings(lanMultiPlayerRadioButton, "emu.lanMultiPlayer");
        setBoolFromSettings(netServerPortShiftRadioButton, "emu.netServerPortShift");
        setBoolFromSettings(netClientPortShiftRadioButton, "emu.netClientPortShift");
        setBoolFromSettings(enableProOnlineRadioButton, "emu.enableProOnline");



        setStringToSettings(metaServerTextField, "network.ProOnline.metaServer");
        setStringToSettings(broadcastAddressTextField,"network.broadcastAddress");
        setBoolToSettings(lanMultiPlayerRadioButton, "emu.lanMultiPlayer");
        setBoolToSettings(netServerPortShiftRadioButton, "emu.netServerPortShift");
        setBoolToSettings(netClientPortShiftRadioButton, "emu.netClientPortShift");
        setBoolToSettings(enableProOnlineRadioButton, "emu.enableProOnline");
code MainGUI.java
Code:
private void processArgs(String[] args) {
        if (Settings.getInstance().readBool("emu.enableProOnline")) {
                    ProOnlineNetworkAdapter.setEnabled(true);                
                }else  if (Settings.getInstance().readBool("emu.netServerPortShift")) {
                    Modules.sceNetAdhocModule.setNetServerPortShift(100);
                }else  if (Settings.getInstance().readBool("emu.netClientPortShift")) {
                    Modules.sceNetAdhocModule.setNetClientPortShift(100);                
                }else
(05-17-2014, 06:04 AM)onelight Wrote: [ -> ]I try to add a ButtonGroup to enable/disable ProOnline and enable/disable the client/server port shiftsSmile

code file
Great! I've committed your changes in r3518 Smile . This is excellent work for a beginner!

I've also added the logging of the Network settings and "on the fly" settings changes (a restart should no longer be necessary as long as the application has not started the networking code).
(05-17-2014, 06:04 AM)onelight Wrote: [ -> ]I try to add a ButtonGroup to enable/disable ProOnline and enable/disable the client/server port shiftsSmile

code file

Great job onelight. Wink
(05-18-2014, 11:12 AM)gid15 Wrote: [ -> ]
(05-17-2014, 06:04 AM)onelight Wrote: [ -> ]I try to add a ButtonGroup to enable/disable ProOnline and enable/disable the client/server port shiftsSmile

code file
Great! I've committed your changes in r3518 Smile . This is excellent work for a beginner!

I've also added the logging of the Network settings and "on the fly" settings changes (a restart should no longer be necessary as long as the application has not started the networking code).
Think you!!
I test r3519
restart no longer be necessary, but enable/disable ProOnline must before running game, broadcast Address need restart

edit
And I found a big bug of ProOnline support.
Test Monster Hunter p3
If ProOnline is activated, you can not close jpcsp or kill cmd.exe and java.exe
log
Code:
23:24:20  INFO hle.scePauth - user_main - Reading PAUTH data file from F:\jpcsp\TMP\ULJM05800\PAUTH\pauth_1fae0439.bin.decrypt
23:24:20  INFO hle.sceAtrac3plus - user_main - hleAtracSetData atID=0x2, buffer=0x08B89440, readSize=0x1F5000, bufferSize=0x1F5000, fileSize=0x1F4D94
23:24:20  INFO hle.sceAtrac3plus - user_main - Decodable AT3 data detected.
23:24:23  INFO hle.ThreadManForUser - GUI - ----------------------------- ThreadMan exit -----------------------------
23:24:23  WARN hle.ThreadManForUser - CsePspAtrac3DecodeThrd - checkThreadID not found thread 0x0000000C
23:24:23  WARN hle.ThreadManForUser - CsePspAtrac3DecodeThrd - checkThreadID not found thread 0x0000000C
23:24:23  WARN hle.ThreadManForUser - CsePspAtrac3DecodeThrd - checkThreadID not found thread 0x0000001C
23:24:23  WARN hle.ThreadManForUser - CsePspAtrac3DecodeThrd - checkThreadID not found thread 0x00000010
23:24:23  WARN hle.ThreadManForUser - CsePspAtrac3DecodeThrd - checkThreadID not found thread 0x0000000C
23:24:23  WARN hle.ThreadManForUser - CsePspAtrac3DecodeThrd - checkThreadID not found thread 0x0000001C
23:24:23  WARN hle.ThreadManForUser - CsePspAtrac3DecodeThrd - checkThreadID not found thread 0x00000010
Pages: 1 2 3 4 5 6