Viewing Game's Code

I was wondering if there was any way to view the script of a game made by other users. It'd be a good way to improve coding skills as one can receive new coding ideas looking at scripts.


any published game (xxx.quest) on the quest site can be downloaded, and then you just have to unzip it, to get at it's 'xxx.aslx' game and library files.

once you have the 'xxx.aslx' game and/or librrary files on your computer, the easiest way is to just right click on the game/library file, and open it with a text editor software (notepad, wordpad, apple: text editor, notepad++, etc)

or, you load up the game in the GUI/Editor, and at the top of the screen is a menu bar, where there's a notepaper like button between the 'play' and 'help' buttons. This notepaper like button is a toggle between the GUI/Editor view mode and the full game code mode. So, click on it, to switch into the full Code View mode to see your game code.

(there's another notepaper-like button on the right side on the individual 'add new script' windows, which goes into a code view, but it's ONLY for that individual 'add new script', it is NOT your entire game code)


here's the default/new (entire/full) game code:

<asl version="550">

  <include ref="English.aslx" />
  <include ref="Core.aslx" />

  <game name="whatever_you_named_your_game_as">

    <attr name="gameid" type="string">some_randomly_generated_hash_string</attr>
    <attr name="version" type="string">1.0</attr>
    <attr name="firstpublished" type="string">2017</attr>

  </game>

  <object name="room">

    <inherit name="editor_room" />

    <object name="player">

      <inherit name="editor_object" />
      <inherit name="editor_player" />

    </object>

  </object>

</asl>

the 'asl' block tag is your game / entire game code:

<asl version="550"> // beginning of the 'asl' block tag
  // mass of your full/entire content/code of your game
</asl> // ending of the 'asl' block tag

Thanks...
I did not know the .quest files were zipped!!!
(I found, copy (the important part just incase) the quest file, change the extension to .zip and it opens fine...)
I to find it helpful to see what other people do, to learning a programing language...
Typing in a program from a game book does teach a person a lot...
And how to debug based on their typing skills!!!


Thanks doods.


(Spelling Nazi... and odd because I can't speel mysielf)
"doods"... I read it fine, but couldn't figure out the correct spelling...
for a while...
"dudes"
(Yes, I left my spelling errors in on purpose...)
(All in humor)
If people posted all, or just half, of my spelling errors, there would be 45 spelling posts to each
helpful post...
(if someone thinks this is a "flame" just throw a little water on it and make it steam)
:D :)


Yeah, it's a flame. And I fail to understand the point of the post


xD


Sorry for the delay, I did not intend to make it a flame...
A little humor attempt... but I guess it failed... :(
Spell checker is my best friend, but sometimes it just gives up trying to help...


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

Support

Forums