Author Topic: The web version of AGILE (https://agi.sierra.games)  (Read 18024 times)

0 Members and 2 Guests are viewing this topic.

Offline Collector

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #105 on: May 23, 2024, 06:16:06 PM »
I have received a lot of reactions on Facebook. Much more so than for what I posted about Agile-gdx.
KQII Remake Pic

Offline vafada

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #106 on: May 23, 2024, 06:37:51 PM »
hey, @vafada, good to see you on here again.

Are you referring to the original AGI interpreter source code on the SQ2 disk? Or the web version of AGILE? I assume the former. I can't take credit for the discovery on the SQ2 disk. That was NewRisingSun, as far as I know. There is a thread on here back in October 2016 where he mentions it. Since then, I've extracted the same code from my own copy of Space Quest II. Since then, I have also discovered a further lot of original AGI interpreter source files on a KQ3 disk. The github repo contains both. There was only a small amount of overlap.

Have you given the web version of AGILE a try yet?

Both!!! I read the blog post that was linked on HN about the source code hidden on the disk due to quick format (FAT not really deleting data on the disk) and at the same time stumbled upon the web version of AGILE.... and also saw the blog post regarding the 40th anniversary of KQ1!!! I was surprised to see my name!!!! (shock-face)

I've been monitoring the agile-gdx on GitHub for a while now, was able to build it locally..... It's nice to see it live in production

I tried playing the two player game but couldn't figure out the control for the second player and gave up  ;D

Offline lance.ewing

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #107 on: May 24, 2024, 02:21:34 AM »
Both!!! I read the blog post that was linked on HN about the source code hidden on the disk due to quick format (FAT not really deleting data on the disk) and at the same time stumbled upon the web version of AGILE.... and also saw the blog post regarding the 40th anniversary of KQ1!!! I was surprised to see my name!!!! (shock-face)

It was your version of JAGI that I started out with. I could see that you'd extended it quite a bit.

I've been monitoring the agile-gdx on GitHub for a while now, was able to build it locally..... It's nice to see it live in production

I tried playing the two player game but couldn't figure out the control for the second player and gave up  ;D

Hmmm, its a bit fiddly actually. You have to use the control key with A, D, Q, W, E, Z, X, C. The problem is that the web browser uses some of those for certain things and they can't be overridden. So, for example, Ctrl-W seems to close the tab!

Did you try importing one of the original Sierra games?

Offline lance.ewing

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #108 on: May 25, 2024, 02:21:59 AM »
The stars for the agi repo just went above 40, and agile-gdx is at 22 at the moment.

The activity appears to be levelling out now, as far as the upvote rate is concerned:

https://news.social-protocols.org/stats?id=40455758

The agi repo is at 64 stars now, and the agile-gdx repo at 27 stars. I doubt they'll increase much more. It was definitely a worthwhile exercise. I think the agile-gdx stars were only around 5 prior to publishing that article.

Offline russdanner

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #109 on: March 23, 2025, 09:40:55 PM »
I've pushed this little project with AGI.js, but I think I am starting to see it hit a limit due to the bugs in that engine.  I am thinking of switching this over to the web version of AGIle. 

Weekend programming and AI prompt engineering fun:

]YT
« Last Edit: March 23, 2025, 11:25:50 PM by russdanner »

Offline russdanner

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #110 on: March 23, 2025, 11:31:27 PM »
I've been trying to build and deploy the app. I have no issues running it on the real site via Chrome, but I am getting this error when it's deployed locally.

(building with gradle html:war)

Quote
html-0.js:8354 Uncaught ReferenceError: SharedArrayBuffer is not defined
    at com_agifans_agile_gwt_GwtUserInput_GwtUserInput__V.com_agifans_agile_gwt_GwtUserInput_GwtUserInput__Lcom_google_gwt_core_client_JavaScriptObject_2Lcom_google_gwt_core_client_JavaScriptObject_2Lcom_google_gwt_core_client_JavaScriptObject_   .....

UPDATE:
If you are running in Tomcat 10+ you will either need a servlet filter or a web server/proxy to set the following headers:
   Cross-Origin-Opener-Policy same-origin;
   Cross-Origin-Embedder-Policy require-corp;

Build / deployment instructions would help the README.  If I get it going, I'll send a PR.
« Last Edit: March 24, 2025, 01:45:12 AM by russdanner »

Offline lance.ewing

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #111 on: March 24, 2025, 05:59:27 AM »
UPDATE:
If you are running in Tomcat 10+ you will either need a servlet filter or a web server/proxy to set the following headers:
   Cross-Origin-Opener-Policy same-origin;
   Cross-Origin-Embedder-Policy require-corp;

Yes, that is correct. I've set up Cloudflare Pages to set those headers in the case of the agi.sierra.games website. The SharedArrayBuffer won't work without them.

Build / deployment instructions would help the README.  If I get it going, I'll send a PR.

When I wrote the README for agile-gdx, I was focusing more on the users of the agi.sierra.games website itself rather than on building and installing it on a different site. I do need to add a section that covers the latter.

I'm currently working on a similar project for emulating an old 8-bit home computer from the 80s called the Oric (I'm not sure if it is known much in the USA but it was a thing in the UK and parts of Europe). I used exactly the same approach for this emulator (called JOric) as I did for AGILE, in fact I copied some of the code from AGILE to get it working on the web, so it uses the same approach to using SharedArrayBuffers to share data between the browser UI thread and the background web worker. In this case, I did add a section to the README that covered setting up those HTTP header fields:

https://github.com/lanceewing/joric?tab=readme-ov-file#running-on-your-own-local-web-server

I'm planning to add a section like that to the agile-gdx README as well, in fact I've added a lot of additional features to this JOric emulator that I think would be useful for agile-gdx, such as loading a game from a url via a request parameter, and drag and drop, and generally lots of usability improvements, particularly with the game selection pages. I do plan to copy those improvements back to agile-gdx at some point.
« Last Edit: March 24, 2025, 06:03:00 AM by lance.ewing »

Offline russdanner

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #112 on: March 24, 2025, 10:11:34 AM »
Lance, the level of detail and effort you (always) go to is truly impressive.

Offline russdanner

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #113 on: March 26, 2025, 02:16:43 AM »
I'm planning to add a section like that to the agile-gdx README as well, in fact I've added a lot of additional features to this JOric emulator that I think would be useful for agile-gdx, such as loading a game from a url via a request parameter, and drag and drop, and generally lots of usability improvements, particularly with the game selection pages. I do plan to copy those improvements back to agile-gdx at some point.

Welp.. I'm in a fine mess now :) I've made enough progress to ensure I'll be wasting a lot more time screwing around with this project hahaha

https://www.loom.com/share/3982a4c9f2b146ccbb635abf774e5bca

Offline russdanner

Re: The web version of AGILE (https://agi.sierra.games)
« Reply #114 on: Yesterday at 03:20:05 AM »
Here's a little video update for anyone interested. Making progress.

I seem to be getting WebGL crashes so I'll have to look into that.

https://www.loom.com/share/900e28bb7af849d593c835621f8f0de1


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.025 seconds with 21 queries.