[GER/EN] NosTale Chit-Chat

12/02/2014 20:36 Dande.#15916
Quote:
Originally Posted by Bombasticx3 View Post
Warte ma ab bis Epvp deine Ip rausgeben darf :o
Nein ohne Scheiß. GF ist da mittlerweile echt aggressiv :D


Agressiv weil mein Vulki auf +14 gegangen ist? :o
12/02/2014 20:40 Bombasticx3#15917
Quote:
Originally Posted by Dande. View Post
Agressiv weil mein Vulki auf +14 gegangen ist? :o
Ja. Wie bei Kalydo. Da wurde ich gebannt.
12/02/2014 23:28 aiimsh0ckz#15918
Quote:
Originally Posted by Bombasticx3 View Post
Ja. Wie bei Kalydo. Da wurde ich gebannt.
Wtf. Wie kannst du bei einem Offiziellen Boost-Beta-Server gebannt werden? XD
12/03/2014 11:14 SCOP1X#15919
Weiß wer die Antwort für den Adventskalender heute?
12/03/2014 13:32 Bombasticx3#15920
Quote:
Originally Posted by aiimsh0ckz View Post
Wtf. Wie kannst du bei einem Offiziellen Boost-Beta-Server gebannt werden? XD
Man wurde im richtigen Server gebannt.
IP ftw.
12/04/2014 15:40 Dande.#15921
Wer zockt hier alles eig auf S1?
12/04/2014 16:24 Bombasticx3#15922
Quote:
Originally Posted by Dande. View Post
Wer zockt hier alles eig auf S1?
:awesome:
12/04/2014 17:16 Dande.#15923
Quote:
Originally Posted by Bombasticx3 View Post
:awesome:
Warte wir haben uns doch grad Ch 3 Arena gesehn wenn ich mich grad nicht täusche? :D
12/04/2014 19:40 Bombasticx3#15924
Quote:
Originally Posted by Dande. View Post
Warte wir haben uns doch grad Ch 3 Arena gesehn wenn ich mich grad nicht täusche? :D
Joa. Ist möglich :D
12/07/2014 14:36 ernilos#15925
All images from NSipData.NOS of KR client converted to PNG ^-^
[Only registered and activated users can see links. Click Here To Register...]
12/07/2014 15:10 IceTrailer#15926
Quote:
Originally Posted by ernilos View Post
All images from NSipData.NOS of KR client converted to PNG ^-^
[Only registered and activated users can see links. Click Here To Register...]
Do you recommend a converter?
12/07/2014 18:54 ernilos#15927
Quote:
Originally Posted by sk8ter08 View Post
Do you recommend a converter?
?
I wrotte a console app in vb.net to do the conversions, the code is this:
Code:
Module NConverter

    Sub Main()
        If Not IO.Directory.Exists("ip") Then IO.Directory.CreateDirectory("ip")
        For Each file As String In IO.Directory.GetFiles("ip")
            Convert_To_PNG(file)
            IO.File.Delete(file)
        Next
    End Sub
    Function GetColor(ByVal byt As Byte, Optional ByVal encoding As Boolean = False) As Byte
        If encoding Then
            Return byt / &H11
        Else
            Return byt * &H11
        End If
    End Function
    Function RGB4A_to_RGB888(ByVal clr As UInt16) As Drawing.Color
        Dim A = (clr >> 12) And &HF
        Dim R = (clr >> 8) And &HF
        Dim G = (clr >> 4) And &HF
        Dim B = clr And &HF
        Return Drawing.Color.FromArgb(GetColor(A), GetColor(R), GetColor(G), GetColor(B))
    End Function
    Sub Convert_To_PNG(ByVal file_name As String)
        Dim bReader As New IO.BinaryReader(IO.File.Open(file_name, IO.FileMode.Open))
        Dim sprite_amount As Byte = bReader.ReadByte
        Dim sprite_width As UInt16 = bReader.ReadUInt16
        Dim sprite_height As UInt16 = bReader.ReadUInt16
        Dim sprite_unknow As UInt32 = bReader.ReadUInt32
        Dim sprite_offset As UInt32 = bReader.ReadUInt32
        Console.WriteLine("Parsing file {0}, has {1} sprites ({2} x {3})", file_name, sprite_amount, sprite_width, sprite_height)
        bReader.BaseStream.Seek(sprite_offset, IO.SeekOrigin.Begin)
        Dim bmp As New Drawing.Bitmap(sprite_width, sprite_height)
        For y = 0 To sprite_height - 1 Step 1
            For x = 0 To sprite_width - 1 Step 1
                bmp.SetPixel(x, y, RGB4A_to_RGB888(bReader.ReadUInt16))
            Next
        Next
        bmp.Save(file_name & ".png", Drawing.Imaging.ImageFormat.Png)
        bmp.Dispose()
        bReader.Close()
        bReader.Dispose()
    End Sub
End Module
12/07/2014 20:15 -Azra-#15928
Gibt es eine Möglichkeit herauszufinden, welcher Gegenstand welches PNG Bild aus ernilos Liste ist?

z.B. Bild 543 = Walkerperle
12/07/2014 22:23 IceTrailer#15929
Quote:
Originally Posted by ernilos View Post
?
I wrotte a console app in vb.net to do the conversions, the code is this:
Code:
Module NConverter

    Sub Main()
        If Not IO.Directory.Exists("ip") Then IO.Directory.CreateDirectory("ip")
        For Each file As String In IO.Directory.GetFiles("ip")
            Convert_To_PNG(file)
            IO.File.Delete(file)
        Next
    End Sub
    Function GetColor(ByVal byt As Byte, Optional ByVal encoding As Boolean = False) As Byte
        If encoding Then
            Return byt / &H11
        Else
            Return byt * &H11
        End If
    End Function
    Function RGB4A_to_RGB888(ByVal clr As UInt16) As Drawing.Color
        Dim A = (clr >> 12) And &HF
        Dim R = (clr >> 8) And &HF
        Dim G = (clr >> 4) And &HF
        Dim B = clr And &HF
        Return Drawing.Color.FromArgb(GetColor(A), GetColor(R), GetColor(G), GetColor(B))
    End Function
    Sub Convert_To_PNG(ByVal file_name As String)
        Dim bReader As New IO.BinaryReader(IO.File.Open(file_name, IO.FileMode.Open))
        Dim sprite_amount As Byte = bReader.ReadByte
        Dim sprite_width As UInt16 = bReader.ReadUInt16
        Dim sprite_height As UInt16 = bReader.ReadUInt16
        Dim sprite_unknow As UInt32 = bReader.ReadUInt32
        Dim sprite_offset As UInt32 = bReader.ReadUInt32
        Console.WriteLine("Parsing file {0}, has {1} sprites ({2} x {3})", file_name, sprite_amount, sprite_width, sprite_height)
        bReader.BaseStream.Seek(sprite_offset, IO.SeekOrigin.Begin)
        Dim bmp As New Drawing.Bitmap(sprite_width, sprite_height)
        For y = 0 To sprite_height - 1 Step 1
            For x = 0 To sprite_width - 1 Step 1
                bmp.SetPixel(x, y, RGB4A_to_RGB888(bReader.ReadUInt16))
            Next
        Next
        bmp.Save(file_name & ".png", Drawing.Imaging.ImageFormat.Png)
        bmp.Dispose()
        bReader.Close()
        bReader.Dispose()
    End Sub
End Module
Nice. You maybe know how to reverse this action? (png -> binary)
I had a look to the png files a bit and I have to say it's very difficulty.
12/08/2014 14:03 ernilos#15930
Quote:
Originally Posted by sk8ter08 View Post
Nice. You maybe know how to reverse this action? (png -> binary)
I had a look to the png files a bit and I have to say it's very difficulty.
Did you had a look at my [Only registered and activated users can see links. Click Here To Register...]? I think I keep having the code, I can send you If you wanna it