Moving Tantra Online to Unity Engine

Results 1 to 5 of 5
  1. #1
    Account Upgraded | Title Enabled! GMDeveloper1 is offline
    MemberRank
    Mar 2013 Join Date
    328Posts

    note Moving Tantra Online to Unity Engine

    any updates regarding movbing assets of tantra online files to unity
    ?


  2. #2
    Apprentice garys175 is offline
    MemberRank
    Oct 2012 Join Date
    23Posts

    Re: Moving Tantra Online to Unity Engine

    did you?

  3. #3
    Account Upgraded | Title Enabled! GMDeveloper1 is offline
    MemberRank
    Mar 2013 Join Date
    328Posts

    Re: Moving Tantra Online to Unity Engine

    I have no clue where to start.

  4. #4
    Apprentice garys175 is offline
    MemberRank
    Oct 2012 Join Date
    23Posts

    Re: Moving Tantra Online to Unity Engine

    mm yes u can start with the leaked source code.
    this function the zoneserver read MapData.tcm u can port to c#
    int BASE_InitializeAttribute(E_COUNTRY_ID contry) // reading g_pAttribute
    {
    #ifdef __ZONE_SERVER__
    g_kInfluenceMap.Init();

    FILE* fp = NULL;

    if (fp == NULL)
    {
    ::fopen_s(&fp, "MapData.tcm", "rb");
    if (fp == NULL)
    {
    MessageBox(NULL, "can't file MapData.tcm file", "error", MB_OK | MB_SYSTEMMODAL);
    return FALSE;
    }

    //
    MAP_FILE_HEADER header;

    fread(&header, sizeof(header), 1, fp);

    CELL_STATUS status[10];
    CELL_INFO info;

    for (DWORD dwIndex = 0; dwIndex < header.dwFloorCountTotal; dwIndex++)
    {
    fread(&info, sizeof(CELL_INFO), 1, fp);
    fread(status, sizeof(CELL_STATUS), info.byCount, fp);

    //fors_debug ²âÊÔ¿Í»§¶ËµØÍ¼Ó÷þÎñ¶Ë
    g_krgCell[info.wZ][info.wX].usHeight = status[0].wHeight;

    g_krgCell[info.wZ][info.wX].usProperty = status[0].wState;
    //fors_debug ²âÊÔ¿Í»§¶ËµØÍ¼Ó÷þÎñ¶Ë
    g_krgCell[info.wZ][info.wX].usEvent = (short)status[0].dwEvent;

    if (0 < g_krgCell[info.wZ][info.wX].usEvent && eEvent_MaxCount > g_krgCell[info.wZ][info.wX].usEvent)
    g_krgCell[info.wZ][info.wX].usProperty = (g_krgCell[info.wZ][info.wX].usProperty | eTNCell_HaveEvent);
    }

    return TRUE;

    }
    else
    {
    fread(g_krgCell, sizeof(g_krgCell), 1, fp);
    }

    for (int y = 0; y < MAX_GRIDY; ++y)
    for (int x = 0; x < MAX_GRIDX; ++x)
    { //fors_debug µØÍ¼ too

    if (eTNCell_SafetyZone & g_krgCell[y][x].usProperty)
    g_kInfluenceMap.PropagteInfl(x, y, TNInfluenceMap::eInfl_SaftyZone);

    else if (eTNCell_Blocked & g_krgCell[y][x].usProperty)
    g_kInfluenceMap.PropagteInfl(x, y, TNInfluenceMap::eInfl_Forbidden, 0);
    }

    ::fclose(fp);
    #endif //__ZONE_SERVER__
    return TRUE;
    }

  5. #5
    Proficient Member hodias is offline
    MemberRank
    Apr 2009 Join Date
    BrazilLocation
    191Posts
    how to convert models and map to fbx?



Advertisement