This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about ProOnline support
#11
(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.
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#12
(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");

.zip   changed code.zip (Size: 34.65 KB / Downloads: 177)

As a coder I just a beginner, forgive my Coding Style and bug (if it have)
Reply
#13
(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...
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#14
(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.
Reply
#15
(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
Reply
#16
(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.
Reply
#17
I try to add a ButtonGroup to enable/disable ProOnline and enable/disable the client/server port shiftsSmile
   
code file

.zip   code.zip (Size: 62.4 KB / Downloads: 177)
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
Reply
#18
(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).
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#19
(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
Reply
#20
(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
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)