Unrar Problem || weaponSubtype Question

08/04/2014 11:54 abdoumatrix#1
hey everyone.

sorry for this annoying topic.

just 2 stupid questions.


1st


2nd



Ty for advance
sorry for the dump questions :D
08/04/2014 13:46 nTL3fTy#2
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
08/04/2014 13:54 abdoumatrix#3
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??
08/04/2014 17:41 Spirited#4
Yes, don't use a source from an Arabic website.
08/04/2014 18:23 abdoumatrix#5
Quote:
Originally Posted by Spirited View Post
Yes, don't use a source from an Arabic website.
xD u read wrong :D

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

like this
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]


reference i use unrar from winrar website.
08/04/2014 22:24 Mr_PoP#6
why would you unrar it yourself , when you can make the rar self extraction , and you simply make your AutoPatcher open that rar lol!?
08/05/2014 00:16 abdoumatrix#7
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!?
:facepalm:

i 'm using
[Only registered and activated users can see links. Click Here To Register...]

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 :D

===================
this could be closed as i solved it my self
i was right the error was from this part :D
PHP Code:
[DllImport("unrar.dll")]
        private static 
extern int RARProcessFileW(IntPtr hArcDataint operation,
            [
MarshalAs(UnmanagedType.LPWStr)] string destPath,
            [
MarshalAs(UnmanagedType.LPStr)] string destName); 
08/05/2014 16:10 Mr_PoP#8
Quote:
Originally Posted by abdoumatrix View Post
:facepalm:

i 'm using
[Only registered and activated users can see links. Click Here To Register...]

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 :D

===================
this could be closed as i solved it my self
i was right the error was from this part :D
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 ^_^ [Only registered and activated users can see links. Click Here To Register...]
08/06/2014 04:59 -Sensei-#9
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 ^_^ [Only registered and activated users can see links. Click Here To Register...]
Yep you are right about that.. but his taking his autopatcher to the next level..
08/06/2014 10:54 abdoumatrix#10
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 ^_^ [Only registered and activated users can see links. Click Here To Register...]
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