Re: No Chinese Characters? (CPW)
Quote:
Originally Posted by
avalanche3
but I am doing it my way since 8 months or so and it works fine =P
What is "your way"? The documentation for CPW said NOT to use .PCKs in CPW. Not to mention, even if "it works" that would not be the ideal or most efficient way of doing it.
Prime example, lets say you wanted to update JUST badwords.txt in configs.pck. "My way" [and the way described in the 'original documentation'] would have you upload just your new badwords.txt to the proper location in CPW, run a CPW patch/update, BAM done. If you're using .PCKs in CPW you would have to first un-compress configs.pck, replace badwords.txt, re-compress configs.pck, upload to CPW, run the CPW patch/update, THEN you'd be done [much more work] <.< Then, if I am not mistaken, this makes things for users (clients) more difficult too, as, since the patcher works off of files and their MD5 (say if a person uses the 'verify' feature), now opposed to the patcher updating just the users/clients badwords.txt, now it'd going to re-update the entire configs.pck [and I'll bet you could imagine how bad this would be for a HUGE pck like models!]. So unless you know something I do not (or I am wrong about anything above), you can see how inefficient that way really is :wink:
Quote:
Originally Posted by
SylenThunder
OK HMMM it finished (in about 6-8 hours). I then ran ./cpw refresh 606 so that it would be the same version number to test a verify.
It acts like it's there and can see it, "updates" the patcher, and then gives me the "Server not available" error. Should I maybe increment the version number to 607?
My server's IP is 192.168.15.144, and I have the patch server setting in the file set to "Local" "http://192.168.15.144/cpw/". I'll have to go digging through the old CPW threads to figure out what I've set up wrong I guess.
The only thing I see wrong for sure in your post is that I do not think that the cpw flag "refresh" even exists, it is either cpw "new" or "revision"...
Aside that, at this time, I would like to assure that you NEVER ran cpw "install" ~ if you did that, it will NOT work because I already did that prior to putting it out so that the server and client side 'keys' would match, if you run install it gave the server side a new key and therefore will not connect now :wink:
As it states in my documentation the ONLY commands you should run is "initial" to do your first build, then "new" or "revision" to make updates :):
Re: No Chinese Characters? (CPW)
Quote:
Originally Posted by
343
apt-get install lib32* will work
Re: No Chinese Characters? (CPW)
Quote:
Originally Posted by
343
The only thing I see wrong for sure in your post is that I do not think that the cpw flag "refresh" even exists, it is either cpw "new" or "revision"...
Aside that, at this time, I would like to assure that you NEVER ran cpw "install" ~ if you did that, it will NOT work because I already did that prior to putting it out so that the server and client side 'keys' would match, if you run install it gave the server side a new key and therefore will not connect now :wink:
As it states in my documentation the ONLY commands you should run is "initial" to do your first build, then "new" or "revision" to make updates :):
Right, it was revision. Too many hours looking at web searches. I never did run install, and if I read what you said correctly, I never should have, so all is correct there.
After much searching, the only real detailed instructions I can find on CPW are included with it, and even they are vague on some spots.
Here's what I have...
Code:
This release comes with CPW pre-installed and pre-configured...
All you must do is fully un-pack and place your entire client in /opt/cpw/files/new/
*Please note that /opt/cpw/files/new/ *CANNOT* contain any PCK's (you must fully un-pack your client [do NOT forget PCK's in sub-directories {ie... element/help/}])
Example -- The file loginpage.ini from the pack configs.pck would be (found/put) in:
/opt/cpw/files/new/element/configs/loginpage.ini
or, the file list.txt from the pack script.pck would be (found/put) in:
/opt/cpw/files/new/element/help/script/list.txt
*Please also note that you must be cautious to preserve files and directories that contain Chinese characters in their name...
One program I recommend using is 7zip, because it saves in UTF32 - this will preserve our Chinese file and directory names...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
STEP 1) FULLY UN-PACK CLIENT AND PLACE IN:
/opt/cpw/files/new/
STEP 2) RUN BASE BUILD:
./cpw initial
STEP 3) TO CREATE PATCHES - PLACE NEW FILES IN:
/opt/cpw/files/new/
3.B)
./cpw revision [revision_number]
or
./cpw new [revision_number]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Content of a Patch CUP (manual patch file):
ec_patch_0-1.cup
ec_patch_0-1.cup/version
ec_patch_0-1.cup/v-1.inc
ec_patch_0-1.cup/element/*.* (where the new files are)
Create a .CUP using PW-PACK (or sPCK, etc...)
Files are found (file names are in base64) in /opt/cpw/files/CPW/
Personally, I haven't made any .cup files, and I don't immediately see the need to, although I may later.
I followed this for creating the base build and it would not connect. My existing client version is 606. All of the version files in /opt/cpw/files/CPW have the number 1 in them.
So basically what I have done to this point is this....
- Installed the necessary lib packages to get p7zip installed.
- Installed p7zip
- Un-packed the .7z files I made of my fully extracted client files into /opt/cpw/files/new
- Ran the command "./cpw initial"
- Tried to connect the patcher using update server of http://192.168.15.144/CPW/ (Originally cpw was lowercase, I changed it to all uppercase and there was no change), to no avail, it "updated" the patcher, and then says "Server not available".
- Ran the command "./cpw revision 606"
- Tried to connect the patcher and it says "Update server connection Please try other update s", running a verify results in the same as above, and occasionally it will pop up a "version mismatch" error that just goes away after I click on it.
The clients can connect to the game server and play just fine, but so far I can't get cpw to connect properly at all.
Re: No Chinese Characters? (CPW)
rtfm !!! http://pwcpw.codeplex.com/downloads/get/130629
Quote:
./cpw revision 606
you habe 605 updates ?
Re: No Chinese Characters? (CPW)
Quote:
Originally Posted by
fgru
I am using PsyTrac's 1.4.4 release based off 343's build. I am using client version 606 from his release.
http://forum.ragezone.com/f751/psytr...elease-831329/
I do not understand what you mean by that question.
It's also too bad that I can't read Russian. I'll try Google translate, but usually it completely fails.
Re: No Chinese Characters? (CPW)
Re: No Chinese Characters? (CPW)
ok so basically the I would use "./cpw revision 607"?
I'll give that a shot
Edit: Nope. Patcher brought up the message saying "Version mismatch. Verify now?" I click yes, it goes through the process like it's updating the patcher, then we see the patcher again and it says "Server not available "Please try again later".
Re: No Chinese Characters? (CPW)
Re: No Chinese Characters? (CPW)
Quote:
Originally Posted by
SylenThunder
Right, it was revision. Too many hours looking at web searches. I never did run install, and if I read what you said correctly, I never should have, so all is correct there.
After much searching, the only real detailed instructions I can find on CPW are included with it, and even they are vague on some spots.
Here's what I have...
Code:
This release comes with CPW pre-installed and pre-configured...
All you must do is fully un-pack and place your entire client in /opt/cpw/files/new/
*Please note that /opt/cpw/files/new/ *CANNOT* contain any PCK's (you must fully un-pack your client [do NOT forget PCK's in sub-directories {ie... element/help/}])
Example -- The file loginpage.ini from the pack configs.pck would be (found/put) in:
/opt/cpw/files/new/element/configs/loginpage.ini
or, the file list.txt from the pack script.pck would be (found/put) in:
/opt/cpw/files/new/element/help/script/list.txt
*Please also note that you must be cautious to preserve files and directories that contain Chinese characters in their name...
One program I recommend using is 7zip, because it saves in UTF32 - this will preserve our Chinese file and directory names...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
STEP 1) FULLY UN-PACK CLIENT AND PLACE IN:
/opt/cpw/files/new/
STEP 2) RUN BASE BUILD:
./cpw initial
STEP 3) TO CREATE PATCHES - PLACE NEW FILES IN:
/opt/cpw/files/new/
3.B)
./cpw revision [revision_number]
or
./cpw new [revision_number]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Content of a Patch CUP (manual patch file):
ec_patch_0-1.cup
ec_patch_0-1.cup/version
ec_patch_0-1.cup/v-1.inc
ec_patch_0-1.cup/element/*.* (where the new files are)
Create a .CUP using PW-PACK (or sPCK, etc...)
Files are found (file names are in base64) in /opt/cpw/files/CPW/
Personally, I haven't made any .cup files, and I don't immediately see the need to, although I may later.
I followed this for creating the base build and it would not connect. My existing client version is 606. All of the version files in /opt/cpw/files/CPW have the number 1 in them.
So basically what I have done to this point is this....
- Installed the necessary lib packages to get p7zip installed.
- Installed p7zip
- Un-packed the .7z files I made of my fully extracted client files into /opt/cpw/files/new
- Ran the command "./cpw initial"
- Tried to connect the patcher using update server of http://192.168.15.144/CPW/ (Originally cpw was lowercase, I changed it to all uppercase and there was no change), to no avail, it "updated" the patcher, and then says "Server not available".
- Ran the command "./cpw revision 606"
- Tried to connect the patcher and it says "Update server connection Please try other update s", running a verify results in the same as above, and occasionally it will pop up a "version mismatch" error that just goes away after I click on it.
The clients can connect to the game server and play just fine, but so far I can't get cpw to connect properly at all.
Few things. First, looking toward the end of your post (numbers 1-7) I must ask what you mean by updated the patcher in step 5. If you updated the patcher there's your problem. If you updated (to say the current official patcher) the keys now no longer match the key on the server... Also, noted in number 5 was changing cpw to CPW, do NOT do that as Linux IS case sensitive on directory names (unlike windblowz), so, CPW does not exist, cpw does... :wink: Another thing you can do is go to http://ip.address/cpw in a web browser and you should get a directory listing... Which will contain element, info, launcher, and patcher... Second, you are correct, you DO NOT want to run ./cpw install, so I am glad you did not. Though like I said above, if you've updated the patcher, your client and server 'keys' no longer match (and leave /cpw/ cpw not CPW) :wink:
If I am correct in that your patcher keys do not match between your client and server side, you should revert back to the old patcher, at least for testing purposes. If you really don't like that old patcher (like I do) you can, once you verify you can get it working, update it to latest official patcher, then hex edit the patcher.exe and make the key match the server... However, first you should worry about making it function first :wink:
And (provided you haven't touched them) the pid and pid.ini files (client AND server side) should be "131" and "[Version]
pid=131" respectively...
1 Attachment(s)
Re: No Chinese Characters? (CPW)
By updated the patcher, I mean the patcher connected to my server, and displayed this image...
Attachment 110858
Here is what my updateserver.txt file looks like.
Code:
"[EN]Patch-1" "http://192.168.15.144/cpw/"
(Although when it "updates" the patcher, it changes "cpw" to "patch")
Personally, I'm not certain it's really updating anything, It's just that I open the patcher, it says "verifying files", and it says there's a version mismatch, do I want to verify. If I don't click verify, it says "Server not available" and I can click Start to move on. If I DO click Yes to Verify, it closes the patcher, displays the box above, and then re-opens the patcher and then tells me the server isn't available.
I have since taken the patcher.exe and Launcher.exe and copied them over to /opt/cpw.
I then, (following an English translation of the Russian instructions, thank you PsyTrac), ran "./cpw x patcher.exe" and "./cpw x Launcher.exe", then after it got done patching those files with the keys, I moved them to their respective folders in /opt/cpw/files/new and ran "./cpw revision 608" Unfortunately, still nothing has changed.
I additinally copied those files after they were "patched" by cpw back over to my computer and get the same result.
The patcher appears to connect to it initially to tell me there's a version mismatch, but then when it's time to check the files or do any actual updating, it's not connecting. Also, yes I have checked the PID, both are 131, and the version files in /opt/cpw/files/CPW (Yes, the case is correct there), showed "1" after the initial build, and now shows "2". (I have also tried changing those files to match my current version with no success.)
All files in /opt/cpw/files are 555, with root as group and owner.
Oh, almost forgot... If I put http://192.168.15.144/cpw/ into my browser, I do get an index of files with the four base client folders listed. Browsing the tree, it looks exactly like /opt/cpw/files/CPW.
Re: No Chinese Characters? (CPW)
IDK WTH is going on then, but I do know you should NOT be getting that 'descent' patcher box. My suggestion, DELETE your client side patcher, replace with the entire patcher directory from my v136, and see if it will connect. As long as the key on the server side still has not been changed, it will function, er, I should say, SHOULD function :):
Re: No Chinese Characters? (CPW)
descent patcher + launcher is working 100% [ i use the last patcher + launcher version of official pwi ... ] ... and you can ONLY update elements folder ... not patcher or launcher ... if the launcher update himself . any wrong ...
first . rtm
second . on serverside [ cpw folder or similar ] > patcher and launcher may contain no files you CANT update both ...
third . you need a link to /opt/cpw [ or similar ] > ln -s /opt/cpw/files/CPW /opt/lampp/htdocs/cpw [ or similar ]
AND DONT FORGET
first:
Quote:
Signing of patcher.exe and launcher.exe.
Place patcher.exe and launcher.exe to the root of program folder. Run these commands (Attention! OS Linux is register-safety!):
./cpw x patcher.exe
./cpw x launcher.exe
copy patched files to YOUR client folder
second:
Quote:
After that, create files/CPW/info/ folder and place there file named pid, containing the number from clients patcher/server/pid.ini file, usually 101 or 131.
... the official tutorial are very good for understanding and using ...
i use last patcher + launcher from offi pwi and full unpacked client v639 and all works 100% ...
Re: No Chinese Characters? (CPW)
I never said they wont work at all (new patchers), but surely the keys will NOT match right off the bat, like they DO between my server and client patcher keys in my release. They already match, so if he cannot even get it working in that manner, there's no real point in continuing any further <.<