Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Install guide for windows 10 (might work for others)

Đang mở
#15 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
cli, documentation

Hướng nghiên cứu

Start with the installation steps and FAQ in the issue body, then review the linked tibia-maps project and verify the Node.js, Python, GTK, npm, and Windows paths described. Done means a Windows 10 user can follow the guide and run tibia-maps without the documented canvas errors.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

2019-03-02; Updated and make sure it works had issues with 32bit for some reason so edit it for 64bit

Install guide for tibia map script converter by Mathias.
https://github.com/tibiamaps/tibia-maps-script
1: Install node.js v10.x.x LTS 64-bit version
https://nodejs.org/en/

2: Install Python 2.x.x 32-bit version
https://www.python.org/downloads/
Make sure you add Python to your Path during the install

3: Install Microsoft Visual Studio 2015 or higher i recommend 2017

Important: During the install make sure to select custom and make sure that your installing stuff related to C++

2017:
https://www.visualstudio.com/downloads/

*I made a link to my personal Dropbox https://www.dropbox.com/s/xjd99fhnv428xmj/.vsconfig?dl=0 where you can the .vsconfig file to directly setup Visual studio 2017 with the absolut minimum requiered stuff to save you people some space and time.
You load it during the regular setup (if you do this you can ignore step 4 it does it for you)

4: Install Windows 10 SDK
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

5: Download GTK+ and extract it on C:\ so it looks like C:\GTK(around 8 folders one of em should be named bin)
http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip
If you need 32bit version/info it can be found on link below
https://github.com/Automattic/node-canvas/wiki/Installation%3A-Windows

6: Set system path for GTK+ by going to "Control Panel\System and Security\System" then "Advanced System Settings" then "Environment Variables" then under System variables find the one called Path and click Edit... then Add ";C:\GTK\bin" to the end without the ""

7: open CMD in administrator mode and write the following commands:
change the first command to whatever version of visual studio your using

npm config set msvs_version 2017 --global
npm install -g canvas
npm install -g tibia-maps

DONE. Enjoy!

FAQ:

Error 1:

Canvas fails to install.

Error 1 Fix:

canvas install fail is most likely due to wrong version of GTK either 64bit or 32bit depending on what you had first.. try the other.

-------------------------------------
Error 2:

Converting maps doesn't work:

E:\PATH\ver2>tibia-maps --from-maps=./Automap --output-dir=./data
module.js:440
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The specified module could not be found.
\?\C:\Users\USERNAME\AppData\Roaming\npm\node_modules\tibia-maps\node_modules\canvas\build\Release\canvas.node
    at Error (native)
    at Object.Module._extensions..node (module.js:440:18)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (C:\Users\USERNAME\AppData\Roaming\npm\node_modules\tibia-maps\node_modules\canvas\lib\bindings.js:3:18)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
Error 2 Fix:

Go to C:\GTK\bin\ and copy ALL .dll files and place them in: C:\Users\USERNAME\AppData\Roaming\npm\node_modules\tibia-maps\node_modules\canvas\build\Release\. Now it should work.

Ngôn ngữ chính
JavaScript
Star
17
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tibiamaps/tibia-maps-script

Tất cả issue của tibiamaps/tibia-maps-script

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.