Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 11:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Unrar Problem || weaponSubtype Question

Discussion on Unrar Problem || weaponSubtype Question within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
Unrar Problem || weaponSubtype Question

hey everyone.

sorry for this annoying topic.

just 2 stupid questions.


1st


2nd



Ty for advance
sorry for the dump questions
abdoumatrix is offline  
Old 08/04/2014, 13:46   #2
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Use arithmetic. I believe there will only ever be two at most, but I could be mistaken, either way it doesn't really matter.

Code:
subtype1 = WeaponSubtype % 1000
subtype2 = (WeaponSubtype / 1000) % 1000
subtype3 = (WeaponSubtype / 1000000) % 1000
// subtype1 = 410, subtype2 = 614
nTL3fTy is offline  
Thanks
1 User
Old 08/04/2014, 13:54   #3
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
Quote:
Originally Posted by nTL3fTy View Post
Use arithmetic. I believe there will only ever be two at most, but I could be mistaken, either way it doesn't really matter.

Code:
subtype1 = WeaponSubtype % 1000
subtype2 = (WeaponSubtype / 1000) % 1000
subtype3 = (WeaponSubtype / 1000000) % 1000
// subtype1 = 410, subtype2 = 614
always love ur share


----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------



any idea about the extracting problem??
abdoumatrix is offline  
Old 08/04/2014, 17:41   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Yes, don't use a source from an Arabic website.
Spirited is offline  
Thanks
2 Users
Old 08/04/2014, 18:23   #5
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
Quote:
Originally Posted by Spirited View Post
Yes, don't use a source from an Arabic website.
xD u read wrong

my autopatch extract files in wrong place when the path contain for ex: arabic letters.

like this




reference i use unrar from winrar website.
abdoumatrix is offline  
Old 08/04/2014, 22:24   #6
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
why would you unrar it yourself , when you can make the rar self extraction , and you simply make your AutoPatcher open that rar lol!?
Mr_PoP is offline  
Old 08/05/2014, 00:16   #7
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
Quote:
Originally Posted by Mr_PoP View Post
why would you unrar it yourself , when you can make the rar self extraction , and you simply make your AutoPatcher open that rar lol!?


i 'm using


in my autopatcher but when it download a new patch it extract it in wrong place see the path at the breakpoint i set and see the name of the file the extract in other place

===================
this could be closed as i solved it my self
i was right the error was from this part
PHP Code:
[DllImport("unrar.dll")]
        private static 
extern int RARProcessFileW(IntPtr hArcDataint operation,
            [
MarshalAs(UnmanagedType.LPWStr)] string destPath,
            [
MarshalAs(UnmanagedType.LPStr)] string destName); 
abdoumatrix is offline  
Old 08/05/2014, 16:10   #8
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by abdoumatrix View Post


i 'm using


in my autopatcher but when it download a new patch it extract it in wrong place see the path at the breakpoint i set and see the name of the file the extract in other place

===================
this could be closed as i solved it my self
i was right the error was from this part
PHP Code:
[DllImport("unrar.dll")]
        private static 
extern int RARProcessFileW(IntPtr hArcDataint operation,
            [
MarshalAs(UnmanagedType.LPWStr)] string destPath,
            [
MarshalAs(UnmanagedType.LPStr)] string destName); 
dude again you don't need to unrar it yourself , make the rar "SFX" read this topic ^_^
Mr_PoP is offline  
Thanks
1 User
Old 08/06/2014, 04:59   #9
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Quote:
Originally Posted by Mr_PoP View Post
dude again you don't need to unrar it yourself , make the rar "SFX" read this topic ^_^
Yep you are right about that.. but his taking his autopatcher to the next level..
-Sensei- is offline  
Old 08/06/2014, 10:54   #10
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
Quote:
Originally Posted by Mr_PoP View Post
dude again you don't need to unrar it yourself , make the rar "SFX" read this topic ^_^
ty for suggestion

i'm trying to make one like the one used in 5095+ patchs that called neconcube or whatever its name is.

so i need it handle rar files and etc
abdoumatrix is offline  
Reply


Similar Threads Similar Threads
Debian (Squeeze) unrar geht nicht
10/27/2013 - Unix/Linux - 8 Replies
Guten Tag. Ich kann auf meinem Debian 6 (Squeeze) Server keine .rar Datein entpacken. Das Programm 'unrar' / 'unrar-free' liefert, wenn ich ein Programm entpacken will, bei den meisten Datein 'Failed' und nur ein paar werden entpackt. Habe nun mehrere .rar Archive heruntergeladen, es ist bei jedem Archiv so, es kann also nicht am Archiv selber liegen! Kann mir da jemand helfen? Oder gibt es ein alternatives Programm? Danke im voraus! :)
leched hack to administrator w/ free unrar TUT.
01/23/2013 - Soldier Front Hacks, Bots, Cheats & Exploits - 2 Replies
its not working already .. sorry!! that why i remove it..
Unrar.exe/Rar.exe benutzen um datein hinzuzufügen
05/18/2011 - General Coding - 0 Replies
Hallo ich wollte fragen ob mir jemand eine .bat schrieben kann mit der ich dateien aus einem ordner(nennen wir ihn FOLDER) in eine bestehende .Rar hinzufügen kann. mfG -FX-VanCliff Edit:Kann geclosed werden habs selbst auf die reihe bekommen
[How To]Unrar installieren FreeBSD
03/18/2011 - Metin2 PServer Guides & Strategies - 16 Replies
Guten Abend Leute! Ich weiss das ist allgemin eigentlich ein Tutorial für eine andere Section aber da hier in der M2 Section eben fast alle mit FreeBSD arbeiten mache ich das hier! Ihr kennt das doch sicher! Ihr seit in epvp Online seht Serverfiles die ihr unbedingt haben wollt und dann sind die nicht mit tar.gz gepackt sondern mit rar! So Klasse erstmal alles am Desktop entpacken und dann alles einzeln auf den Root hochladen! Damit ihr das nicht mehr machen müsst hab ich nun ein wenig...



All times are GMT +1. The time now is 11:08.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.