OK論壇

 找回密碼
 註冊
查看: 2926|回復: 13

SQL新增地圖問題...

 關閉 [複製鏈接]
  • TA的每日心情
    難過
    2012-5-5 12:42 AM
  • 簽到天數: 2 天

    連續簽到: 0 天

    [LV.1]初來乍到

    發表於 2010-7-31 15:57:30 | 顯示全部樓層 |閱讀模式
    本帖最後由 ﹡傻楓,*]] 於 2010-8-3 02:07 AM 編輯

    新增地圖我記得是要在
    開機檔和補丁也要做一些步驟才可以用的
    我有找過教學看過
    有人跟我說是在DOC裡的CAPCACHE裡改....
    但開了後只看到一堆英文...還有寫上教學(但是都是英文= =")
    機本上...是找不到任何的教學...
    是新增地圖的....小弟不敢亂說在討論區內沒有相關

    資料...
    但是都是找不到的....
    我只找到Txt的新增方法....
    但我聽人說....Sql的和txt不同....
    所以找不到了...  希望諸位可以幫忙解決一下我新增地圖的方法




    我在開機檔看見的doc/mapcache 如下:
    //===== Athena Doc ========================================
    //= eAthena Map Cache Builder and Format Documentation
    //===== By ================================================
    //= DracoRPG
    //===== Version ===========================================
    //= 1.0
    //=========================================================
    //= 0.1 - Short howto for the initial builder version
    //= 1.0 - Complete manual covering the improved version
    //===== Description =======================================
    //= A complete manual for eAthena's map cache generator
    //= as well as a reference on the map cache format used
    //=========================================================
    Preface:
    -------------------------------------------------------------------------------
    Since SVN revision ~10000, the map-server does not know how to read RO client files anymore. It reads maps from a
    "map cache" file that contains all and only the useful data about the maps. A map cache containing every official
    kRO Sakray map currently supported by eAthena is provided as a default.
    If you have custom maps or want to minimize the size of your map cache because your server does not load all of them
    (multi-map-server or light test server), you can use the map cache builder to generate a new one fitting your needs.
    Map cache builder manual:
    -------------------------------------------------------------------------------
    The source code for the map cache builder is located in src/tool/. It can be built using "make tools" if you use the Makefile
    or using the "mapcache" project under Visual Studio. Named "mapcache", the executable will be in your eAthena main folder.
    The map cache builder needs 3 file paths : one is a list of GRFs and/or data directory containing the maps, the second
    is the list of maps to add to the map cache, and the last one is the path of the map cache to generate. Default values for
    those paths are "tools/mapcache/grf_files.txt", "db/map_index.txt" and "db/map_cache.dat".
    The list of GRF and/or data directory must follow the format and indication of the default file: as many "grf:" entries as
    you wish and optionally one only "data_dir:" entry with trailing backslash included. // comments are supported as usual.
    In fact, any file with one map name per line can be used as a map list, that's why the map index list is used as a default:
    we are sure it contains every map supported by the server. Anything after the map name is ignored, // comments are supported
    and if the first word on the line is "map:" then the second word is used as the map name instead: that allows using
    maps_athena.conf as your map list, which is handy if you want to generate a minimal map cache for each of your multiple
    map-servers.
    The map cache file path can point to an already existing file, as the builder adds a map only if it's not already cached.
    This way, you can add custom maps to the base map cache without even needing kRO Sakray maps. If you wish to rebuild the
    entire map cache, though, you can either provide a path to a non-existing file, or force the rebuild mode.
    Here are the command-line arguments you can provide to the map cache builder to customize its behavior:
    -grf path/to/grf/list
       Allows to specify the file containing the list of GRFs and/or data directory
    -list path/to/map/list
       Allows to specify the file containing the list of maps to add to the map cache
    -cache path/to/map/cache
       Allows to specify the path to the generated map cache
    -rebuild
       Allows to force the rebuild mode (map cache will be overwritten even if it already exists)

    Map cache format reference:
    -------------------------------------------------------------------------------
    The file is written as little-endian, even on big-endian systems, for cross-compatibility reasons. Appropriate conversions
    are done when generating it, so don't worry about it.
    The first 6 bytes are a main header:
    <unsigned long> file size
    <unsigned short> number of maps
    Then maps are stored one right after another:
    <12-characters-long string> map name
    <short> X size
    <short> Y size
    <long> compressed cell data length
    <variable> compressed cell data
    回復

    使用道具 舉報

  • TA的每日心情
    無聊
    2025-2-26 12:31 PM
  • 簽到天數: 73 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-7-31 18:44:25 | 顯示全部樓層
    本帖最後由 sb66665112 於 2010-7-31 06:47 PM 編輯

    不就是讀取
    然後先放好地圖
    再決定要讀取哪個
    DATA或GRF都可(設置路徑文件有教學)
    db的map_cache.dat要先刪除
    maps_athena.conf(新增該地圖名稱)
    map_index.txt(新增該地圖名稱)
    grf-files.txt(放置你所需要的地圖檔)(路徑要對好)
    都設置好後
    執行mapcache.exe

    然後新的map_cache.dat會生成
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    難過
    2012-5-5 12:42 AM
  • 簽到天數: 2 天

    連續簽到: 0 天

    [LV.1]初來乍到

     樓主| 發表於 2010-7-31 18:59:40 | 顯示全部樓層
    回復 2# sb66665112


        那請問您一下...教學在哪呀??
    我不會看英文呢@.@"
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    無聊
    2025-2-26 12:31 PM
  • 簽到天數: 73 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-7-31 19:10:56 | 顯示全部樓層

    #3

    假如說
    我今天想要新增一個地圖map : OrzGnz

    maps_athena.conf
    打上
    map: OrzGnz
    之後到db/map_index.txt
    加入OrzGnz
    然後把db內的map_cache.dat
    刪除或者備份
    然後再到
    conf/grf-files.txt
    如果裡面是空的
    請加上
    grf: RO資料夾路徑/data.grf
    之後
    再把你想要新增的地圖放在data資料夾
    然後在conf/grf-files.txt新增
    data_dir: Ro資料夾的路徑/data
    然後執行mapcache.exe
    沒有mapcache.exe的話
    http://twps.hostlanes.com/mapcache.zip
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    難過
    2012-5-5 12:42 AM
  • 簽到天數: 2 天

    連續簽到: 0 天

    [LV.1]初來乍到

     樓主| 發表於 2010-8-1 14:27:26 | 顯示全部樓層
    回復 4# sb66665112


        但是我的開機檔裡沒有grf-file.txt 這個檔....
    這是為什麼呢?!
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    無聊
    2025-2-26 12:31 PM
  • 簽到天數: 73 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-8-1 17:06:45 | 顯示全部樓層
    #5
    去下載ea
    然後如法炮製
    或者自己在conf新增一個grf-flies.txt
    1. //-----------------------------------------
    2. // GRF List
    3. //-----------------------------------------
    4. // grf: C:\path\to\RO\data.grf
    5. // You may add more in this format
    6. // grf: <data file path>

    7. //------ Others ---------------------------

    8. // Data Directory (without the actual data\ though)
    9. // the below example would use C:\path\to\RO\data\
    10. //data_dir: C:\path\to\RO\
    複製代碼
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2013-7-18 09:24 PM
  • 簽到天數: 118 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-8-1 17:08:05 | 顯示全部樓層
    新增地圖跟SQL沒關係吧 ...
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-1 18:13:46 | 顯示全部樓層
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    難過
    2012-5-5 12:42 AM
  • 簽到天數: 2 天

    連續簽到: 0 天

    [LV.1]初來乍到

     樓主| 發表於 2010-8-2 01:18:23 | 顯示全部樓層
    回復 6# sb66665112


        那請問一下你說的那個grf-file.txt 檔...
    是文字檔嗎????
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情

    2013-7-18 09:24 PM
  • 簽到天數: 118 天

    連續簽到: 1 天

    [LV.6]常住居民II

    發表於 2010-8-2 02:04:52 | 顯示全部樓層
    回復  sb66665112


        那請問一下你說的那個grf-file.txt 檔...
    是文字檔嗎????
    ﹡傻楓,*]] 發表於 2010-8-2 01:18 AM



        YES,txt
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    難過
    2012-5-5 12:42 AM
  • 簽到天數: 2 天

    連續簽到: 0 天

    [LV.1]初來乍到

     樓主| 發表於 2010-8-2 13:07:29 | 顯示全部樓層
    回復 10# 夢醒


        我還是不太會做一個= =+....
    大大你可以上傳一個給我嗎??= =+
    萬分感謝了t^t"!
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2019-8-18 04:57 PM
  • 簽到天數: 2148 天

    連續簽到: 1 天

    [LV.Master]伴壇終老

    發表於 2010-8-2 13:19:22 | 顯示全部樓層
    回復 11# ﹡傻楓,*]]


       這邊不是求檔區
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    開心
    2024-9-6 01:09 AM
  • 簽到天數: 1324 天

    連續簽到: 1 天

    [LV.10]以壇為家III

    發表於 2010-8-2 13:36:51 | 顯示全部樓層
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    難過
    2012-5-5 12:42 AM
  • 簽到天數: 2 天

    連續簽到: 0 天

    [LV.1]初來乍到

     樓主| 發表於 2010-8-3 02:06:55 | 顯示全部樓層
    謝謝各位了....我想問題都解決了....
    如果有問題再請教諸位
    回復 支持 反對

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 註冊

    本版積分規則

    Archiver|手機版|小黑屋|OK討論區

    GMT+8, 2025-7-6 12:26 AM , Processed in 0.054643 second(s), 20 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回復 返回頂部 返回列表