Jump to content

FearGod

Inactive Member
  • Posts

    11
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by FearGod

  1. Witam mam problem z kompilacją source

     

    FreeBsd 10.1 x64

     

    pkg 1.9.3
    gmake 4.2.1_1
    makedepend 1.0.5.1
    python 2.7_2,2
    subversion 1.9.4
    devil 1.7.8_21,1
    gcc 4.9.4
    googletest 1.8.0
     
     

    Bez tytułu.jpg

     

     

    W extern/mysql/lib/   jest libmysqlclient.a

     

     

    Makefile:

    Spoiler

    CC = c++
    CFLAGS += -w -O2 -ggdb3 -g3 -std=c++11 -pipe -mtune=i386 -fstack-protector -static -mcmodel=large
    TARGET =/root/game/share/db

    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################
    ##############################################################################

    ############# libthecore libs and includes
    INCDIR += -I/../../libthecore/src
    LIBDIR += -L../../libthecore
    LIBS   += -lthecore

    ############# libgame libs and includes
    INCDIR += -I../../libgame/src
    LIBDIR += -L../../libgame
    LIBS   += -lgame

    ############# libsql libs and includes
    INCDIR += -I../../libsql/src
    LIBDIR += -L../../libsql
    LIBS   += -lsql

    ############# libpoly libs and includes
    INCDIR += -I../../libpoly/src
    LIBDIR += -L../../libpoly
    LIBS   += -lpoly

    ############# mysql libs and includes
    INCDIR += -I../../../extern/mysql
    LIBDIR += -L../../../extern/mysql/lib
    LIBS   += -lmysqlclient -lz -pthread

    ############# boost libs and includes
    INCDIR += -I../../../extern/boost
    LIBDIR += -L../../../extern/boost/lib
    LIBS   += -lboost_system

    ############# source files
    CPP=Cache.cpp\
        ClientManager.cpp\
        ClientManagerBoot.cpp\
        ClientManagerEventFlag.cpp\
        ClientManagerGuild.cpp\
        ClientManagerHorseName.cpp\
        ClientManagerLogin.cpp\
        ClientManagerParty.cpp\
        ClientManagerPlayer.cpp\
        Config.cpp\
        CsvReader.cpp\
        DBManager.cpp\
        GuildManager.cpp\
        ItemAwardManager.cpp\
        ItemIDRangeManager.cpp\
        LoginData.cpp\
        Main.cpp\
        Marriage.cpp\
        MoneyLog.cpp\
        NetBase.cpp\
        Peer.cpp\
        PeerBase.cpp\
        PrivManager.cpp\
        ProtoReader.cpp\
    ############################################################################
    OBJDIR = .obj

    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    OBJS = $(CPP:%.cpp=$(OBJDIR)/%.o)

    default: $(TARGET)

    clean:
        @echo Clean done!
        @find . -type f | xargs -n 5 touch
        @rm -rf $(OBJDIR)
        @rm -rf $(TARGET)

    $(TARGET): $(OBJS)
        @echo linking ...
        @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)

    $(OBJDIR)/%.o: %.cpp
        @echo compile $<
        @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

     

  2.  

     

    Game-exchange.cpp

    Spoiler

        m_pGrid = M2_NEW CGrid(4,3);

    Game-exchange.h

    Spoiler

        EXCHANGE_ITEM_MAX_NUM     = 12,

     

    Bin-PythonExchange.h

    Spoiler

                EXCHANGE_ITEM_MAX_NUM = 12,

     

    exchangedialog.py

    Spoiler

    import uiScriptLocale
    import localeInfo
    import app

    ROOT = "d:/ymir work/ui/game/"

    if app.ENABLE_CHEQUE_SYSTEM :
        BOARD_WIDTH = 290
        BOARD_HEIGHT = 189
        window = {
            "name" : "ExchangeDialog",

            "x" : 0,
            "y" : 0,

            "style" : ("movable", "float",),

            "width" : BOARD_WIDTH,
            "height" : BOARD_HEIGHT,

            "children" :
            (
                {
                    "name" : "board",
                    "type" : "board",
                    "style" : ("attach",),

                    "x" : 0,
                    "y" : 0,

                    "width" : BOARD_WIDTH,
                    "height" : BOARD_HEIGHT,

                    "children" :
                    (
                        ## Title
                        {
                            "name" : "TitleBar",
                            "type" : "titlebar",
                            "style" : ("attach",),

                            "x" : 8,
                            "y" : 8,
         
                            "width" : 276,
                            "color" : "gray",

                            "children" :
                            (
                                { "name":"TitleName", "type":"text", "x":133, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
                            ),
                        },

                        ## MiddleBar
                        {
                            "name" : "Middle_Bar",
                            "type" : "expanded_image",

                            "x" : (BOARD_WIDTH / 2) - 3,
                            "y" : 31,
                            "x_scale" : 1.0, 
                            "y_scale" : 1.16,
                            "image" : ROOT + "windows/middlebar.sub",
                        },

                        ## Owner
                        {
                            "name" : "Owner",
                            "type" : "window",

                            "x" : 150,
                            "y" : 33,

                            "width" : 130,
                            "height" : 146,

                            "children" :
                            (
                                {
                                    "name" : "Owner_Slot",
                                    "type" : "grid_table",

                                    "start_index" : 0,

                                    "x" : 0,
                                    "y" : 0,

                                    "x_count" : 4,
                                    "y_count" : 3,
                                    "x_step" : 32,
                                    "y_step" : 32,
                                    "x_blank" : 0,
                                    "y_blank" : 0,

                                    "image" : "d:/ymir work/ui/public/slot_base.sub",
                                },
                                {
                                    "name" : "Owner_Cheque",
                                    "type" : "button",

                                    "x" : 0,
                                    "y" : 102,

                                    #"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                    "over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                    "down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "children" :
                                    (
                                        {
                                            "name" : "Owner_Cheque_Value",
                                            "type" : "text",

                                            "x" : 59,
                                            "y" : 2,

                                            "text" : "1234567",

                                            "text_horizontal_align" : "right",
                                        },
                                    ),
                                },
                                {
                                    "name" : "Owner_Money",
                                    "type" : "button",

                                    "x" : 0,
                                    "y" : 124,

                                    #"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                    "over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                    "down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "children" :
                                    (
                                        {
                                            "name" : "Owner_Money_Value",
                                            "type" : "text",

                                            "x" : 59,
                                            "y" : 2,

                                            "text" : "1234567",

                                            "text_horizontal_align" : "right",
                                        },
                                    ),
                                },
                                {
                                    "name" : "Owner_Accept_Light",
                                    "type" : "button",

                                    "x" : 95,
                                    "y" : 102,

                                    "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
                                },
                                {
                                    "name" : "Owner_Accept_Button",
                                    "type" : "toggle_button",

                                    "x" : 85,
                                    "y" : 124,

                                    "text" : uiScriptLocale.EXCHANGE_ACCEPT,

                                    "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
                                    "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
                                    "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
                                },
                                {    
                                    "name" : "strOwner_Cheque",    
                                    "type" : "text",
                                    "x" : 67,
                                    "y" : 104,

                                    "text" : localeInfo.CHEQUE_SYSTEM_UNIT_WON,
                                },
                                {    
                                    "name" : "strOwner_Yang",    
                                    "type" : "text",
                                    "x" : 67,
                                    "y" : 126,

                                    "text" : localeInfo.CHEQUE_SYSTEM_UNIT_YANG,
                                },
                            ),
                        },

                        ## Target
                        {
                            "name" : "Target",
                            "type" : "window",

                            "x" : 10,
                            "y" : 33,

                            "width" : 130,
                            "height" : 130,

                            "children" :
                            (
                                {
                                    "name" : "Target_Slot",
                                    "type" : "grid_table",

                                    "start_index" : 0,

                                    "x" : 0,
                                    "y" : 0,

                                    "x_count" : 4,
                                    "y_count" : 3,
                                    "x_step" : 32,
                                    "y_step" : 32,
                                    "x_blank" : 0,
                                    "y_blank" : 0,

                                    "image" : "d:/ymir work/ui/public/slot_base.sub",
                                },
                                {
                                    "name" : "Target_Cheque",
                                    "type" : "image",

                                    "x" : 0,
                                    "y" : 102,

                                    "image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "children" :
                                    (
                                        {
                                            "name" : "Target_Cheque_Value",
                                            "type" : "text",

                                            "x" : 59,
                                            "y" : 2,

                                            "text" : "1234567",

                                            "text_horizontal_align" : "right",
                                        },
                                    ),
                                },
                                {
                                    "name" : "Target_Money",
                                    "type" : "image",

                                    "x" : 0,
                                    "y" : 124,

                                    "image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "children" :
                                    (
                                        {
                                            "name" : "Target_Money_Value",
                                            "type" : "text",

                                            "x" : 59,
                                            "y" : 2,

                                            "text" : "1234567",

                                            "text_horizontal_align" : "right",
                                        },
                                    ),
                                },
                                {
                                    "name" : "Target_Accept_Light",
                                    "type" : "button",

                                    "x" : 95,
                                    "y" : 102,

                                    "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
                                },
                                {    
                                    "name" : "strTarget_Cheque",    
                                    "type" : "text",
                                    "x" : 67,
                                    "y" : 104,

                                    "text" : localeInfo.CHEQUE_SYSTEM_UNIT_WON,
                                },
                                {    
                                    "name" : "strTarget_Yang",    
                                    "type" : "text",
                                    "x" : 67,
                                    "y" : 126,

                                    "text" : localeInfo.CHEQUE_SYSTEM_UNIT_YANG,
                                },
                            ),
                        },
                    ),
                },
            ),
        }
    else :
        window = {
            "name" : "ExchangeDialog",

            "x" : 0,
            "y" : 0,

            "style" : ("movable", "float",),

            "width" : 400,
            "height" : 200,

            "children" :
            (
                {
                    "name" : "board",
                    "type" : "board",
                    "style" : ("attach",),

                    "x" : 0,
                    "y" : 0,

                    "width" : 400,
                    "height" : 200,

                    "children" :
                    (
                        ## Title
                        {
                            "name" : "TitleBar",
                            "type" : "titlebar",
                            "style" : ("attach",),

                            "x" : 8,
                            "y" : 8,
         
                            "width" : 384,
                            "color" : "gray",

                            "children" :
                            (
                                { "name":"TitleName", "type":"text", "x":192, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
                            ),
                        },

                        ## MiddleBar
                        {
                            "name" : "Middle_Bar",
                            "type" : "image",

                            "x" : 200,
                            "y" : 31,

                            "image" : ROOT + "windows/middlebar.sub",
                        },

                        ## Owner
                        {
                            "name" : "Owner",
                            "type" : "window",

                            "x" : 200,
                            "y" : 33,

                            "width" : 200,
                            "height" : 150,

                            "children" :
                            (
                                {
                                    "name" : "Owner_Slot",
                                    "type" : "grid_table",

                                    "start_index" : 0,

                                    "x" : 0,
                                    "y" : 0,

                                    "x_count" : 6,
                                    "y_count" : 4,
                                    "x_step" : 32,
                                    "y_step" : 32,
                                    "x_blank" : 0,
                                    "y_blank" : 0,

                                    "image" : "d:/ymir work/ui/public/slot_base.sub",
                                },
                                {
                                    "name" : "Owner_Money",
                                    "type" : "button",

                                    "x" : 0,
                                    "y" : 136,

                                    #"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                    "over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
                                    "down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "children" :
                                    (
                                        {
                                            "name" : "Owner_Money_Value",
                                            "type" : "text",

                                            "x" : 59,
                                            "y" : 2,

                                            "text" : "1234567",

                                            "text_horizontal_align" : "right",
                                        },
                                    ),
                                },
                                {
                                    "name" : "Owner_Accept_Light",
                                    "type" : "button",

                                    "x" : 62,
                                    "y" : 135,

                                    "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
                                },
                                {
                                    "name" : "Owner_Accept_Button",
                                    "type" : "toggle_button",

                                    "x" : 85,
                                    "y" : 135,

                                    "text" : uiScriptLocale.EXCHANGE_ACCEPT,

                                    "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
                                    "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
                                    "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
                                },
                            ),
                        },

                        ## Target
                        {
                            "name" : "Target",
                            "type" : "window",

                            "x" : 10,
                            "y" : 33,

                            "width" : 200,
                            "height" : 150,

                            "children" :
                            (
                                {
                                    "name" : "Target_Slot",
                                    "type" : "grid_table",

                                    "start_index" : 0,

                                    "x" : 0,
                                    "y" : 0,

                                    "x_count" : 6,
                                    "y_count" : 4,
                                    "x_step" : 32,
                                    "y_step" : 32,
                                    "x_blank" : 0,
                                    "y_blank" : 0,

                                    "image" : "d:/ymir work/ui/public/slot_base.sub",
                                },
                                {
                                    "name" : "Target_Money",
                                    "type" : "image",

                                    "x" : 0,
                                    "y" : 135,

                                    "image" : "d:/ymir work/ui/public/parameter_slot_02.sub",

                                    "children" :
                                    (
                                        {
                                            "name" : "Target_Money_Value",
                                            "type" : "text",

                                            "x" : 59,
                                            "y" : 2,

                                            "text" : "1234567",

                                            "text_horizontal_align" : "right",
                                        },
                                    ),
                                },
                                {
                                    "name" : "Target_Accept_Light",
                                    "type" : "button",

                                    "x" : 62,
                                    "y" : 135,

                                    "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
                                    "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
                                },
                            ),
                        },
                    ),
                },
            ),
        }

     

×
×
  • 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.