Giter Site home page Giter Site logo

Comments (3)

yiyuezhuo avatar yiyuezhuo commented on June 14, 2024

Yes, use Chinese as in e-mail. Content on github issue can help more people, I think.

from hex-wargame-javascript.

uchihatommy avatar uchihatommy commented on June 14, 2024

那么刚才邮件上的问题:
1、这个项目的后端是用什么写的呢?又是如何连接的,因为我把你的项目下载以后,哪个varp方法出不来东西,我寻思可能没连接上服务端?
2、刚才我打包下载了你更新后的项目,其中p_1_shock和princess_battle这两个包会报错,错误代码如下:
Traceback (most recent call last):
File "C:\Users\DELL\Documents\GitHub\Hex-Wargame-JavaScript\scenario\scenario_maker.py", line 306, in
model.parse(place=True)
File "C:\Users\DELL\Documents\GitHub\Hex-Wargame-JavaScript\scenario\scenario_maker.py", line 291, in parse
self.place_rewrite()
File "C:\Users\DELL\Documents\GitHub\Hex-Wargame-JavaScript\scenario\scenario_maker.py", line 220, in place_rewrite
unit=self.id_unit_dic[unit_id]
KeyError: 34

from hex-wargame-javascript.

yiyuezhuo avatar yiyuezhuo commented on June 14, 2024

1.没有后端,用jsonp就是为了本地直接打开*.html就可以正常读取剧本文件。读不出来的问题可能是我之前读取脚本的顺序不对,有时会读不出来。现在应该已经可以读出来了。
比如
file:///E:/agent4/git_test/debug/Hex-Wargame-JavaScript-master/game.html?varp=scenario/Assaye.js
可以直接换掉varp的值
file:///E:/agent4/git_test/debug/Hex-Wargame-JavaScript-master/game.html?varp=scenario/output.js
来读取新剧本。
2.我又下回来重试了一下,没有问题。你的命令行命令是什么?

from hex-wargame-javascript.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.