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.

Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about ProOnline support
05-09-2014, 06:38 AM
Post: #11
RE: about ProOnline support
(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
Find all posts by this user
Quote this message in a reply
05-09-2014, 07:20 AM
Post: #12
RE: about ProOnline support
(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: 2)

As a coder I just a beginner, forgive my Coding Style and bug (if it have)
Find all posts by this user
Quote this message in a reply
05-09-2014, 11:46 AM
Post: #13
RE: about ProOnline support
(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
Find all posts by this user
Quote this message in a reply
05-09-2014, 12:22 PM
Post: #14
RE: about ProOnline support
(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.
Find all posts by this user
Quote this message in a reply
05-09-2014, 02:36 PM
Post: #15
RE: about ProOnline support
(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
Find all posts by this user
Quote this message in a reply
05-09-2014, 04:05 PM
Post: #16
RE: about ProOnline support
(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.
Find all posts by this user
Quote this message in a reply
05-17-2014, 06:04 AM
Post: #17
RE: about ProOnline support
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: 2)
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
Find all posts by this user
Quote this message in a reply
05-18-2014, 11:12 AM
Post: #18
RE: about ProOnline support
(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
Find all posts by this user
Quote this message in a reply
05-18-2014, 02:55 PM
Post: #19
RE: about ProOnline support
(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
Find all posts by this user
Quote this message in a reply
05-18-2014, 02:57 PM (This post was last modified: 05-18-2014 03:37 PM by onelight.)
Post: #20
RE: about ProOnline support
(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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)