Viewing game code?

Ithaca
Hey there,

I'm relatively new to Quest.

I'd like to be able to create a game, and view that game code in Visual Studio (for example). Is this possible? Viewing the game code (C#? Java? Python?) would enable me to study and understand what I'm doing.

If I can do this, or somehow export Quest-files to .sln/.pt files, that would be awesome.

/ I

Pertex
Do you want to create a game with Quest or do you want to change the Questeditor itself?

Ithaca
Pertex wrote:Do you want to create a game with Quest or do you want to change the Questeditor itself?


Basically, to create a game with quest - and then view that game-code (proper code with syntax, etc.) to study it and learn about methods etc.

jaynabonne
I actually use Visual Studio to edit my game code. I have my main game file and a lot of libraries (all .aslx files). So I created an empty solution in VS and then just added in all the .aslx files. If you're starting out, you'll just have the one, your main game file. If all you want to do is look at the aslx code, then you can just load the .aslx file into VS, without even needing a solution file.

I found that VS will syntax highlight the code (being XML) and helps with respect to editing. The code is a custom XML-formatted language.

The one downside - if you're editing your main game file, you have to close it out of Quest and reload it after changes. I had heard somewhere that Quest would notice the changed file and prompt you to reload it, but that has never happened for me.

You can also view and edit the source directly within Quest by clicking the "Code View" button (the one between the "Play" button and the blue Help one on the icon bar - second from the right in Quest 5.2).

Hope that helps.

Alex
Quest will notice that the file has been updated if it's loaded in the Editor - you'll get a yellow bar at the top of the screen. It doesn't respond to changes when the game is loaded in the Player though.

jaynabonne
I don't get the yellow bar, but I did just now notice that switching in and out of Code View reloads the file. So that is good enough.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums