GameMaker: Studio

GameMaker: Studio

查看统计:
DirectOrder 2015 年 11 月 2 日 下午 6:04
Exporting Scripts in readable format?
I don't always have game maker in front of me, but I often like to look over my code "on the go". For this purpose, I use the Show Object Information option (which cleanly spits out all code for all objects in the game in a manner that's simple to cut and paste), and copy everything into an excel file. I can open that up on any computer, or even my phone, and work on my game any time I want. I do this all the time. With my schedule, I get half of my project work done when I'm not at home.

My one problem is, the Show Object Information only shows OBJECT information. With half of my game code in scripts, there doesn't seem to be an easy way to export all of my script code to a .csv, .txt, html, etc.

For a while, I was getting around this by having an object called "copy of scripts", and every time I wrote a new script, I would copy and paste it into the "copy of scripts" object as a new event action. This was nice because when I used Show Object Information, all of my script code automatically came with it.

My problem: As my project grows, and the amount of code going into scripts grows, my method of coyping new scripts (and recopying over the old scripts every time I make a change) into an object is getting out of hand. Is there no way to export all scripts to a text file or csv or anything? It seems strange that theres a super easy way to export all of your code in an easy to ready and copy text format as long as you didn't put any of into scripts!

Anybody got any better ideas for me besides maintaining an object that contains a copy of all my scripts?
最后由 DirectOrder 编辑于; 2015 年 11 月 2 日 下午 6:09
< >
正在显示第 1 - 1 条,共 1 条留言
Daynar 2015 年 11 月 2 日 下午 10:40 
If you right click on the scripts folder you should get an option to export all scripts and if you right click on a specific script it should give you an option to just export it. I believe gamemaker stores everything in xml files anyway (I THINK) so you should be able to just open up the resources themselves and copy/edit them. Note that this may cause things to break internally if you mess with the tags.
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50

发帖日期: 2015 年 11 月 2 日 下午 6:04
回复数: 1