Eklentili Altyapı Kaynak Dosyaları

Adalet

Üye
Üye
Mesaj
108
Beğeni
222
Puan
746
Ticaret Puanı
0
Selamlar çok önceleri geliştirdiğim bir altyapıydı. Altyapıyla benden destek alan kişilerle birkaç oyun yapıldı açıldı, sonrasında altyapı halini arşivime kaldırmıştım. Paylaşımla ilgili fazla detaya gerek yok gerek içerisindeki yaptığım eklentiler, gerek dosya elden ele gezdiğini gördüğüm için paylaşma gereği duydum. Geçmişte daha çok istemci taraflı optimizasyon için uğraştığım dosyalardır. Vaktimden dolayı o dönem daha fazlasını yapamamıştım. Core olarak Martysama'dır. Giriş yapan arkadaşlar kanıt atabilirse yetkili arkadaşlarım konuya ekleyebilirler.
FreeBSD 13 üstü-Windows
GCC10 C++20
Vs2022 C++17
Mysql 5.6
MySQL Kullanıcı
adaletwork
adalet
Oyun içi İD
dev
12345
Burayı görüntülemek için üye girişi yapmalı veya kayıt olmalısınız.
 
Son düzenleme:
Hocam locale inch service h commondefines atabilme şansınız var mı, paylalım için teşekkür ederim.
 
1721009885864.webp
 
Locale.inc:
Genişlet Daralt Kopyala
/*
Author: Adalet
Filename: Locale_inc.h
Project Name: SF Project
Last Revision: 19.04.2022
*/
#pragma once

/** Improvement Defines **/
#define LOCALE_SERVICE_EUROPE
#define ENABLE_COSTUME_SYSTEM
#define ENABLE_ENERGY_SYSTEM
#define ENABLE_DRAGON_SOUL_SYSTEM
#define ENABLE_NEW_EQUIPMENT_SYSTEM
#define ENABLE_PACK_GET_CHECK
#define ENABLE_CANSEEHIDDENTHING_FOR_GM
#define ENABLE_PROTOSTRUCT_AUTODETECT

/** General and System Defines **/
#define ENABLE_PLAYER_PER_ACCOUNT5
#define ENABLE_LEVEL_IN_TRADE
#define ENABLE_DICE_SYSTEM
#define ENABLE_EXTEND_INVEN_SYSTEM
#define ENABLE_LVL115_ARMOR_EFFECT
#define ENABLE_SLOT_WINDOW_EX
#define ENABLE_USE_COSTUME_ATTR
#define ENABLE_DISCORD_RPC
#define WJ_SHOW_MOB_INFO
#ifdef WJ_SHOW_MOB_INFO
#define ENABLE_SHOW_MOBAIFLAG
#define ENABLE_SHOW_MOBLEVEL
#endif
#define ENABLE_WOLFMAN_CHARACTER
#define ENABLE_MOUNT_COSTUME_SYSTEM
#define ENABLE_WEAPON_COSTUME_SYSTEM
#define ENABLE_ACCE_COSTUME_SYSTEM
#define ENABLE_OBJ_SCALLING
#define ENABLE_HIGHLIGHT_NEW_ITEM
#define ENABLE_EMOJI_SYSTEM
#define ENABLE_VIEW_TARGET_PLAYER_HP                                            // Show Decimal HP
#ifdef ENABLE_VIEW_TARGET_PLAYER_HP                                                //
#define ENABLE_VIEW_TARGET_DECIMAL_HP                                            //
#endif
#define ENABLE_WHEEL_MOUSE
#define ENABLE_VIEW_ELEMENT
#define ENABLE_SEND_TARGET_INFO
#define ENABLE_HEALTH_PERCENT_SYSTEM                                            // Target Hp Percent Sysetm
#define NOKTA_HASAR                                                                // Noktalı Hasar Sistemi
#ifdef NOKTA_HASAR                                                                // Noktalı Hasar Sistemi
//#define M_K_T HASAR    //exmp: 1.200.300.400 > 1T200M300K400
#endif
#define ENABLE_NEW_DROP_DIALOG // New drop dialog with remove item option
#define ENABLE_DROP_DIALOG_EXTENDED_SYSTEM
#define ENABLE_ITEM_DELETE_SYSTEM
#define ENABLE_OFFICAL_CHARACTER_SCREEN                                            // Karakter Ekranı
#define ENABLE_QUEST_CATEGORY_SYSTEM                                            // Gorev Kategori Modulu
#define ENABLE_DETAILS_INTERFACE                                                // Bonus Tablosu
#define ENABLE_KILL_STATISTICS                                                    // Boss,Metin,Kill vs. İstatistikleri Sistemi
#define ENABLE_INGAME_TITLE                                                        // In game tittle
#define ENABLE_WINDOW_ANIMATION                                                    // Window Animation
#define ENABLE_CHATTING_WINDOW_RENEWAL                                            //
#define ENABLE_DS_GRADE_MYTH                                                    // Mitsi Simya Sistemi
#define ENABLE_DS_SET                                                            // Simya Set Bonus Sistemi
#define ENABLE_FONT_SELECT                                                      
#define GAMEMASTER_OUTLINE_COLOR                                              
#define ENABLE_PERSPECTIVE_VIEW                                                  
#define RENEWAL_NOTICE                                                          
#define RENEWAL_REFRESH                                                          
#define CHAT_OUTLINE_CORRECT                                                  
#define ALL_TEXT_OUTLINE                                                      

/** Fix and Renewal Defines **/
#define ENABLE_TEXT_LEVEL_REFRESH                                                // Level Yenilemesi
#define ENABLE_BOSS_FALL_FIX                                                    // Boss fall fix
#define ENABLE_OX_MAP_WITHOUT_COLLISIONS                                        // Removes collision in Ox map
#define ENABLE_SHOPS_WITHOUT_COLLISIONS                                            // Removes shop collisin
#define ENABLE_SAFEZONE_WITHOUT_COLLISIONS                                        // Removes collision in safezone
#define ENABLE_MOBS_WITHOUT_COLLISIONS                                            // Removes mob collision
#define ENABLE_PETS_WITHOUT_COLLISIONS                                            // Removes pet collision
#define ENABLE_MOUNTS_WITHOUT_COLLISIONS                                        // Removes mount collision
#define ENABLE_EFFECT_LOOP_FIX                                                    // Blocks the loop of the effects
#define ENABLE_LAG_DELAY_FIX                                                    // Lag delay fix (PhaseGame)
#define ENABLE_CONNECT_FIX                                                        // Netstream connect fix
#define ENABLE_CAMERA_MINIMIZARE_CLIENT_FIX                                        // Minimize camera bug fix
#define ENABLE_BLACK_SCREEN_CLIENT_FREEZE_FIX                                    // Black screen and client freeze fixed
#define ENABLE_HEAVY_EFFECT_FIX                                                    // Heavy effect process fix
#define MOB_FLAG_FIX                                                            // Flag view fix
#define FOUR_STONES_EFFECT_FIX                                                    // Wear stone fix
#define RACE_HEIGHT_FIX                                                            // Text height fix
#define ENABLE_ITEM_MOVE_FIX                                                    // Item Grid Move Fix
#define ENABLE_CHANNEL_INFO_UPDATE                                                // Channel info reset now fix

/** Optimization and Improvement Defines **/
#define ENTITY_PRELOADING                                                        // Load Entity Information from Server ( Prevent Frame Spikes )
#define MAPS_OBJ_OPTIMISATION                                                    // Obj. render view distance
#define ENABLE_FIX_MOBS_LAG                                                        // Render Tess.
// #define ENABLE_PLAYERS_LOAD_FIX
#define STONE_AND_MOB_OPTIMISATION                                                // Drop FPS Fix
#define DIRECTX_EXTENSION_OPTIMISATION                                            // Uncomp.
#define RENDER_BUFF_FREEZE_FIX                                                    // Runnning Client Freeze fix

#define ENABLE_CPP_17                                                            // ETC
#if defined(ENABLE_CPP_17)
#if !defined(_HAS_STD_BYTE)
#define _HAS_STD_BYTE 0
#endif
#endif


/** Graphic API Update **/
#define DIRECTX9
#ifdef DIRECTX9
#define D3DLIGHT8                    D3DLIGHT9
#define D3DMATERIAL8                D3DMATERIAL9
#define IDirect3DVertexBuffer8        IDirect3DVertexBuffer9
#define LPDIRECT3DTEXTURE8            LPDIRECT3DTEXTURE9
#define LPDIRECT3DSURFACE8            LPDIRECT3DSURFACE9
#define D3DVIEWPORT8                D3DVIEWPORT9
#define LPDIRECT3DDEVICE8            LPDIRECT3DDEVICE9
#define LPDIRECT3DVERTEXBUFFER8        LPDIRECT3DVERTEXBUFFER9
#define LPDIRECT3DINDEXBUFFER8        LPDIRECT3DINDEXBUFFER9
#define DXLOCKTYPE                    (void**)
#define D3DVERTEXELEMENT8            D3DVERTEXELEMENT9
#define LPDIRECT3DBASETEXTURE8        LPDIRECT3DBASETEXTURE9
#define LPDIRECT3DPIXELSHADER8        LPDIRECT3DPIXELSHADER9
#define D3DADAPTER_IDENTIFIER8        D3DADAPTER_IDENTIFIER9
#define IDirect3D8                    IDirect3D9
#define IDirect3DDevice8            IDirect3DDevice9
#define D3DCAPS8                    D3DCAPS9
#define LPDIRECT3D8                    LPDIRECT3D9
#define IDirect3DTexture8            IDirect3DTexture9
#define Direct3DCreate8                Direct3DCreate9
#define IDirect3DSurface8            IDirect3DSurface9
#else
#define DXLOCKTYPE                    (BYTE**)
#endif
#define DIRECTX9_ENGINE_WINDOW_DRAP_DROP_FIX
#ifdef DIRECTX9_ENGINE_WINDOW_DRAP_DROP_FIX
#include <ddraw.h>
#define D3DCAPS2_CANRENDERWINDOWED    DDCAPS2_CANRENDERWINDOWED
#endif

/** Closed Defines **/
// #define ENABLE_PRINT_RECV_PACKET_DEBUG
// #define ENABLE_MAGIC_REDUCTION_SYSTEM
CommonDefines:
Genişlet Daralt Kopyala
/*
Author: Adalet
Filename: CommonDefines.h
Project Name: SF Project
Last Revision: 14.10.2022
*/

#ifndef __INC_METIN2_COMMON_DEFINES_H__
#define __INC_METIN2_COMMON_DEFINES_H__
#pragma once

/** Improvement and Encrypt Defines **/
enum eCommonDefines {
    MAP_ALLOW_LIMIT = 32, // 32 default
};
#define _IMPROVED_PACKET_ENCRYPTION_
#define __PET_SYSTEM__
#define __UDP_BLOCK__


/** General and System Defines **/
#define ENABLE_D_NJGUILD
#define ENABLE_FULL_NOTICE
#define ENABLE_NEWSTUFF
#define ENABLE_PORT_SECURITY
#define ENABLE_BELT_INVENTORY_EX
#define ENABLE_CMD_WARP_IN_DUNGEON
#define ENABLE_PLAYER_PER_ACCOUNT5
#define ENABLE_DICE_SYSTEM
#define ENABLE_EXTEND_INVEN_SYSTEM
#define ENABLE_MOUNT_COSTUME_SYSTEM
#define ENABLE_WEAPON_COSTUME_SYSTEM
#define ENABLE_QUEST_DIE_EVENT
#define ENABLE_QUEST_BOOT_EVENT
#define ENABLE_QUEST_DND_EVENT
#define DISABLE_STOP_RIDING_WHEN_DIE //    if DISABLE_TOP_RIDING_WHEN_DIE is defined, the player doesn't lose the horse after dying
#define ENABLE_ACCE_COSTUME_SYSTEM //fixed version
// #define USE_ACCE_ABSORB_WITH_NO_NEGATIVE_BONUS //enable only positive bonus in acce absorb
#define ENABLE_HIGHLIGHT_NEW_ITEM //if you want to see highlighted a new item when dropped or when exchanged
#define __ENABLE_KILL_EVENT_FIX__ //if you want to fix the 0 exp problem about the when kill lua event (recommended)
#define __VIEW_TARGET_PLAYER_HP__                                                                    // Show Decimal HP
#ifdef __VIEW_TARGET_PLAYER_HP__                                                                    //
    #define __VIEW_TARGET_DECIMAL_HP__                                                                //
#endif
#define __SEND_TARGET_INFO__ // Monster target information
#define ELEMENT_TARGET                                                                                // Target Element Resistence (Target Mob)
#define __NEW_DROP_DIALOG__ // New drop dialog with remove item option
#define ENABLE_DROP_DIALOG_EXTENDED_SYSTEM
#define ENABLE_OFFICAL_CHARACTER_SCREEN                                                                // Karakter Ekranı
#define ENABLE_QUEST_CATEGORY_SYSTEM                                                                // Gorev Kategori Modulu
#define ENABLE_KILL_STATISTICS                                                                        // Kill istatistik
#define ENABLE_MULTI_STATUS                                                                            //
#define __CHATTING_WINDOW_RENEWAL__                                                                    //
#define ENABLE_DS_GRADE_MYTH                                                                        // Mitsi Simya Sistemi
#define ENABLE_DS_SET                                                                                // Simya Set Bonusu

/** Fix and Renewal Defines **/
#define ENABLE_FALL_FIX                                                                                //
#define ENABLE_CRASH_CORE_ARROW_FIX                                                                 // Arrow crash fixed
#define ENABLE_CLEAR_OLD_GUILD_LANDS                                                                // If there is a guild lands, after 3 weeks inactivity it deletes
#define ENABLE_OBSERVER_DAMAGE_FIX                                                                    // observers can not attack
#define ENABLE_PARTY_EXP_FIX                                                                        // implementation of party exp char_battle
#define ENABLE_CHANGE_SEX_WITH_COSTUME_FIX                                                            // Fixed change sex with costume
#define ENABLE_CHANGE_SEX_WITH_HAIR_FIX                                                                // Fixed change sex with hair costume
#define FOUR_STONES_EFFECT_FIX                                                                        //

/** Optimization and Improvement Defines **/
#define STONE_AND_MOB_OPTIMISATION                                                                    //
#define ENTITY_PRELOADING                                                                    // Load all entities in specific map ( Reduce Frame Spikes )



/** Wolfman Defines **/
#define ENABLE_WOLFMAN_CHARACTER
#ifdef ENABLE_WOLFMAN_CHARACTER
// #define USE_ITEM_BLEEDING_AS_POISON
// #define USE_ITEM_CLAW_AS_DAGGER
#define USE_MOB_BLEEDING_AS_POISON
#define USE_MOB_CLAW_AS_DAGGER
#define USE_WOLFMAN_STONES
#define USE_WOLFMAN_BOOKS
#endif


/** Closed Defines **/
// #define ENABLE_MAGIC_REDUCTION_SYSTEM
#ifdef ENABLE_MAGIC_REDUCTION_SYSTEM
// #define USE_MAGIC_REDUCTION_STONES
#endif
// #define ENABLE_ITEM_ATTR_COSTUME
// #define ENABLE_SEQUENCE_SYSTEM
// #define ENABLE_SYSLOG_PACKET_SENT // debug purposes
#endif
 
ne diye aratmam gerekiyor bulamadım
Kod:
Genişlet Daralt Kopyala
void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
    //static D3DXCOLOR s_kLevelColor = D3DXCOLOR(119.0f/255.0f, 246.0f/255.0f, 168.0f/255.0f, 1.0f);
    static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
    static D3DXCOLOR s_kPetColor = D3DXCOLOR(255.0f / 255.0f, 255.0f / 255.0f, 0.0f / 255.0f, 1.0f);

    char szText[256];
    sprintf(szText, "Lv %d", level);

    if (IsGrowthPet())
        CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPetColor);
    else
        CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}

bu benim baktığım filesteki kod bloğu. sen bu filesten bu kodu aratıp oradaki level colordan bakabilirsin
 
Geri
Üst