Jump to content

arves100

Former Staff
  • Posts

    620
  • Joined

  • Last visited

  • Days Won

    18
  • Feedback

    100%

Posts posted by arves100

  1. Metin2 can support different fonts, you just have to call SetFontName("(Font name):(size)") and it will do the job of loading the font for you.

    The way the client loads fonts it's oddly complex, but the fonts are loaded as long the first time that the client requires it and then cache em.

    The client looks for (font name).fnt, ".fnt" is an internal extension used for identify what font to load (they do not exist in any EterPack nor they actually should unless you really want to)

    After all the class complex structure, we finally know that CGraphicText is the one responsable for texts and CGraphicFontTexture is the one who loads the texture.

    CGraphicText::OnLoad is called and it creates our FontTexture, specifically it calls CGraphicFontTexture::Craete

     

    From this function, we understand that GDI+ is being used to load fonts (sigh),

    the responsable in font creation is  CGraphicFontTexture::GetFont(WORD codePage).

     

    The simpliest solution I can think of is having your users to install the font you'd like to and call SetFontName (Python).

    If you really want to load TTF, you actually have to load somewhere your font somewhere by using AddFontMemResourceEx. This would also help you packing your font in EterPacks.

    Once the font is loaded, you would have to store the HANDLE inside "m_fontMap"

    Metin2 will take care of freeing the memory for you and load the font once it's cached. GDI can load TTF so that's not an issue.

     

     

    Oh, he's asking about ADDING a new font not changing it.

  2. On 7/4/2020 at 2:56 PM, Poeta said:

    Version of Files XXX

    Hello everyone im having this error and when i log on my P Server and i teleport my client crash and close instantly  

    Im kind of new on the area but after a few changes.. i tried to use old backups from 5days and even 1 week ago but i always get the same error.. After teleport to any map my client just close and i get this message on sysser:

     

    0704 13:39:25410 :: no argument name
    0704 13:39:25410 ::  !! PARSING ERROR - Unknown Arguments : 9, |6;Cancel

    0704 13:40:01438 :: no argument name
    0704 13:40:01438 ::  !! PARSING ERROR - Unknown Arguments : 9, |6;Cancel

     

    Can someone help me with that problem? 

     

     

    Thanks, Sincerly,
    Poeta

     

    I have to admit, I never encountred this error,

    this good guy comes from EterLib\parser, this a TXT parser for events that can happen in the Metin2 Client.

    An example of such event can be the empire description, where there was actually a command to wait a couple of sec untill continuing the text rendering.

    Under normal sources (no additional system or anything else), this error is only related to TXT parsed by your locale, either "RegisterEventSet" or "RegisterEventSetFromString" (as far as I was able to quickly read).

    The ones that gets registred are Empiredesc and Jobdesc, so I am pretty sure you have those files wrong. (Keep in mind that bad codepage can also cause an issue in parsing special character) or you are using an unknown command not handled by the parser.

     

    • Love 1
  3. 2 hours ago, asdfghjkesha said:

    I don’t know if this is newer/older or same with yours but here’s the one I had. I didn’t test or even scan it though. There are many metin1 private servers still running in China.
    https://mega.nz/file/D4FWhAib#FSOFcmGzBLg6d9TNdnrt62imN3TiKE3oAwo91jjI5KM

    Thanks! Will check them out and report if there's anything new.

    2 hours ago, asdfghjkesha said:

    I don’t know if this is newer/older or same with yours but here’s the one I had. I didn’t test or even scan it though. There are many metin1 private servers still running in China.
    https://mega.nz/file/D4FWhAib#FSOFcmGzBLg6d9TNdnrt62imN3TiKE3oAwo91jjI5KM

    This files are the same files that I've posted with the following changes:

    - There's like a GM NPC or something similar that I've not seen in the release I have downloaded

    - It includes the FreeBSD 5 Virtual Machine file that I've not included in my release (it was too heavy :/)

    The version is the same MTS 2 0.9.5 (at least client side)

    • Love 1
  4. Spoiler

    spacer.png

     

    Hey guys, Scamming INC. is now accepting professional scammers to work and scam at the company, make sure to fill the document there and answer this thread.

    • Not Good 1
  5. 1 hour ago, TMP4 said:

    Sadly it seems to not run on my current pc. Just black screen either way i try, however i can hear the login screen's music :D

    RIP You have to change the color to 16ppp, files are for FreeBSD 5 ?

    • Sad 1
  6. 16 hours ago, Syrex said:

    hey 
    when i login to game , and select character , game exit and show this message:
    p_1612f8o5s2.png

    and show this in syserr
    0601 00:08:18497 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=137) - Strange Skill Need Weapon(CLAW)
    0601 00:08:18498 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=139) - Strange Skill Need Weapon(CLAW)
     

    Claw skill bla bla is simply remove CLAW skills in skill txts

    • Love 1
  7. 1 minute ago, xAres said:

    Finally we got all the scamming power ever since @PACI is out!

    You tagged the scam master? If it wasn't for him I woudln't be able to get that certificate. But, Paci scammer is deprecated, Ares is the new scammer master.

  8. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Hello, I know this files were released and released a lot of times, but I've decided to slim them for new comers or people who are interested in looking at them.

     

    It's basically, the 2014 krazy sources with every binary/compiled object cleaned up. Tools+Client+Server of mainline, mainline_cythonized, dev, dev_wolf_branch, mainline_w20, mainline_w21, mainline_released included.

    The archive size is 32MB

     

    Link:

    This is the hidden content, please

    Password: ke5389JIEGH@r

    Good luck.

     

    • Metin2 Dev 161
    • kekw 1
    • Eyes 4
    • Dislove 4
    • Angry 2
    • Not Good 1
    • Cry 1
    • Think 1
    • Confused 5
    • Lmao 2
    • Good 70
    • muscle 1
    • Love 20
    • Love 138
  9. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Hello, today is MCSP release date. Have fun.

    Some notes, if you like to implement new algorithms:

    Open CryptAlgorithms.h and define a new class with new stuff, like I did with LZO and Snappy.

    Make sure to modify Crypt.h "enum class CryptationTypes"

     

    Oh btw, you need to add Snappy in your Extern.

     

    How you may ask?

    Download

    This is the hidden content, please

    Install https://cmake.org/download/

    Use cmake-gui to generate stuff, open snappy.sln and build it in release.

    Copy the .h files inside a newly created "snappy" folder in Extern/iniclude

    Go to (cmake build folder)/Release and copy your snappy.lib into Extern/lib

    If you use the vcpkg method: vcpkg install snappy:x86-windows-static

    Ready!

     

     

    • Metin2 Dev 62
    • kekw 1
    • Angry 1
    • Good 14
    • Love 3
    • Love 36
  10. On 4/21/2020 at 12:45 AM, johnis said:

    Thanks for the upload you literally saved me.

    @Kazuhiri go right click on MilesLib > Properties >C/C++ > Preprocessor > Preprocessor definitions and add WINDOWS_IGNORE_PACKING_MISMATCH 

    rebuilt and you should be fine

    Bruh no, just remove "#include <mss.h>" in MilesLib StdAfx.h (root of cause issues: miles sound system 6 bad defines generates some incompatibility with last msvc headers I don't remember what header, note: this errors does not happend with Miles 9)

    • Love 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.