Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - vafada

Pages: [1] 2
1
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

2
just saw the post in HackerNews...

Amazing work!

3
AGI Development Tools / Re: Visual AGI
« on: December 15, 2022, 04:24:44 PM »
Favor, can you update the README on how to build the project?

I'm not a C# / .NET expert..... I cloned the repo and Visual Studio is complaining its can't find the DLL for the dependencies...

particually these harcoded paths:

<Reference Include="FastColoredTextBox">
      <HintPath>..\..\Sierra\AGI\AGI Developer\AGI Developer\Resources\DLLs\FastColoredTextBox.dll</HintPath>
    </Reference>
    <Reference Include="FastColoredTextBoxPlugin">
      <HintPath>..\..\Sierra\AGI\AGI Developer\AGI Developer\Resources\DLLs\FastColoredTextBoxPlugin.dll</HintPath>
    </Reference>
    <Reference Include="Gif.Components">
      <HintPath>..\..\Sierra\AGI\AGI Developer\AGI Developer\Resources\DLLs\Gif.Components.dll</HintPath>
    </Reference>
    <Reference Include="i00BindingList">
      <HintPath>Resources\DLLs\i00BindingList.dll</HintPath>
    </Reference>
    <Reference Include="i00SpellCheck">
      <HintPath>..\..\Sierra\AGI\AGI Developer\AGI Developer\Resources\DLLs\i00SpellCheck.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.VisualBasic" />
    <Reference Include="RichTextBoxEx">
      <HintPath>..\..\Sierra\AGI\AGI Developer\AGI Developer\Resources\DLLs\RichTextBoxEx.dll</HintPath>
    </Reference>

4
AGI Development Tools / Re: C# AGI Interpreter
« on: December 10, 2022, 09:49:43 AM »
Don't have time to try to track it down, now, but AGILE does not accept any keyboard input at the start of the 1986 x-mas card.

its crashing AGILibrary on room 13

I assume there is a bug when parsing the logic file in xmas 1986

GetDestinationAddress = 274

but the Dictionary doesn't have key = 274

Code: [Select]
Exception thrown: 'System.Collections.Generic.KeyNotFoundException' in mscorlib.dll
ex: The given key was not present in the dictionary.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at AGI.Resource.Logic.JumpAction.GetDestinationActionIndex() in C:\Users\Mark\Downloads\AGILibrary\AGI Library\Resource.cs:line 2857

5
AGI Development Tools / Re: JAGI redux - Java AGI Interpreter
« on: December 02, 2022, 04:12:19 PM »
I've had another play with it, this time trying out the debugger. I really like how it can step through the code line by line like a real debugger (which obviously it is  ;D) and the variables update in real time. This is definitely something that will be useful for people working on building AGI games.

A few observations that I'm sure you have probably seen:

  • I noticed that the game screen seems to cut off the right and bottom edges. Does it do that for you?
  • Also, the speed seems a little slower than the original interpreter. Increasing the speed to "fast" or "fastest" does increase the speed, but not as much as the original interpreter. I find that I have to increase the speed to "fastest" in order to move around quick enough to be useful. Did you find that as well?
  • And I noticed that the responsiveness to the keyboard is a little sluggish. For example, hitting a key to skip the intro is almost always ignored. Hitting again and again... no response. But if I hold down a key, then it picks it up, but by then it seems too late, as it has then picked up multiple occurrences of the key. So in SQ1, if I hold down the SPACE key to skip the intro, then the player name entry screen ends up with lots of spaces in it.
  • TAB key is not working for viewing inventory.
  • The window's close button is not working.

the TAB issue, screen cutting out and the window's close button works on non-debug app (AGI.java), the windows close button definitely does not work on debug mode (AGId.java)

the speed and keyboard responsive is definitely some issues i've seen on AGI.java

I'll start playing around AGId.java, I was concentrated on AGI.java (regular gameplay)

I just recently fixed AGId.java to allow to view/edit variables and flags during game play and its wacky... i can teleport, change score, turn sound off/on, etc...  ;D

I'll add view/edit inventory items on AGId.java


I'm looking forward on the Visual AGI project!


6
AGI Development Tools / Re: JAGI redux - Java AGI Interpreter
« on: December 02, 2022, 11:29:46 AM »
ohh.. i haven't played much with the debugger... let me try working on it.

I just push a fix so the debugger will display the current values of the variables and flags but it doesn't refresh when a value changes.... ill work on that soon

edit: that was easy.... the debug window should update vars and flags in real time.

https://github.com/vafada/jagi/blob/master/img/ss11.png


7
AGI Development Tools / JAGI redux - Java AGI Interpreter
« on: December 01, 2022, 07:27:20 PM »
I'd like to announce that after hundreds of commits, JAGI is now in a playable state:

https://github.com/vafada/jagi

That is my fork of JAGI which a fork from @lance.ewing JAGI repo (https://github.com/lanceewing/jagi)

Dr. Z started the JAGI project, at the time it was abandoned, it wasn't really in a playable state. Though almost 90% of the code was already done. Lance Ewing did some fixes on Oct 2016 and then development stopped.

I started plugging all holes and fixing bugs starting on Sept 2022 using AGILE as reference, learning a lot during the process.

Now it's at a state where is usable.

Most of the features are now implemented, saving and restoring game, LSL quiz part, display inventory, etc.

I was able to finish KQ1 and SQ1 using JAGI.

I'm sure there are still weird bugs out there but for now its at a really good state.


8
AGI Development Tools / Re: C# AGI Interpreter
« on: November 28, 2022, 09:17:34 AM »
I have been thinking about splitting out the SCI part of Developer since it is unlikely that the SCI part will ever be finished and the AGI part is closer to usability with the further development of the library. I could then move the AGI project over to GitHub if there would be any interest.

Yes!

9
AGI Development Tools / Re: C# AGI Interpreter
« on: November 27, 2022, 08:24:49 AM »
@vafada, something seems to have changed in bitbucket with adding users. I don't recall it being so hard. I have sent you an invite to a new group I created, as that was the only way I could see to invite someone. I didn't previously have a group defined. Perhaps once you accept the invite, I might be able to add you specifically to the repo.


I accepted the invite... but I can't see any repo

10
AGI Development Tools / Re: C# AGI Interpreter
« on: November 26, 2022, 03:18:28 PM »

11
AGI Development Tools / Re: C# AGI Interpreter
« on: November 26, 2022, 08:09:38 AM »
@lance.ewing not sure if you have been monitoring the git repo. but i posted a bug for GR rendering.

Looks like an AGILibrary.dll bug so i can't help fix.

https://github.com/lanceewing/agile/issues/64

Also any chance you'll open source AGI Library?

12
AGI Development Tools / Re: C# AGI Interpreter
« on: November 20, 2022, 09:00:32 PM »
FYI, Gold Rush ver 3.0 doesn't contain  "new.room(125);" line in Logic 129

The code I pasted on https://sciprogramming.com/community/index.php?topic=1796.msg15870#msg15870 is the entire code for Logic 129 in Gold Rush v3.

13
AGI Development Tools / Re: C# AGI Interpreter
« on: November 20, 2022, 05:49:59 PM »
The steam version is version 3.0, which is the Software Farm (O'Neill Bros) published version. It is the one that i worked with Sunlight Games to release. It never had copy protection and does not need to be patched. All of the earlier versions were published by Sierra with the manual check copy protection and is subject to the buyer not showing bug.

The problem is, AGILE doesn't distinguish between steam and earlier versions and just patches the LOGIC file and skips LOGIC 129.

There must be some way for AGILE to check if the Gold Rush that's being ran needs to be patched or not to skip copy protection.


Edit: Opened a PR for version 3.0: https://github.com/lanceewing/agile/pull/62/files

14
AGI Development Tools / Re: C# AGI Interpreter
« on: November 20, 2022, 12:28:14 PM »
Ok, I believe I found the issue.

Logic 129 contains this block of code

Code: [Select]
  v167 = v222;
  v167 /= 3;
  v165 = v222;
  v165 /= 4;

Logic 0 uses those two vars (167, 165) when changing game speed:

Code: [Select]
if (animationInterval == 0) // fastest
    {
    v166 = v167;
    }
  if (animationInterval == 1) //fast
    {
    v166 = v165;
    }


with Logic 129 skipped v167 and v165 will be 0 so this block of code in Logic 0 which increments to seconds variable will never be executed

Code: [Select]
if (v156 == v166)
    {
    v156 = 0;
    ++v152; // v152 contains the elapsed seconds variable
    }

and as @collector mentioned...

Quote
haven't had a chance to see if the house buyer shows up in Gold Rush!.

The house buyer did not show up after i sold the house... this is at the beginning of the game


I played thru the steam version and no issues... Seconds was incrementing on all game speed.... i guess for the Steam version they just removed the code in the LOGIC file that does copy protection instead if skipping Logic

15
AGI Development Tools / Re: C# AGI Interpreter
« on: November 20, 2022, 11:52:04 AM »
I seem to be hitting that Gold Rush bug when its patched by AGILE:

On the Steam Version of Gold Rush:

https://store.steampowered.com/app/308000/Gold_Rush_Classic/

When AGILE patches the game, changing the game speed to `Fast` or `Fastest`  prevents the elapsed time from moving

The patch mod in AGILE for gold rush, `Changes the new.room(129) to be new.room(73)` In Logic 0

I checked Logic 129 on my game and here's what I have:

Code: [Select]
if (isset(newRoom))
  {
  set(f150);
  animationInterval = 0;
  prevent.input();
  program.control();
  status.line.off();
  v220 = 33;
  v164 = elapsedSeconds;
  ++v164;
  }
if (v164 == elapsedSeconds)
  {
  ++v221;
  if (v221 == 2)
    {
    v221 = 0;
    if (v222 < 240)
      {
      ++v222;
      }
    if (v222 == 240 &&
        v172 < 240)
      {
      ++v172;
      }
    }
  }
if (elapsedSeconds > v164)
  {
  v167 = v222;
  v167 /= 3;
  v165 = v222;
  v165 /= 4;
  if (v165 > 20)
    {
    v165 = 20;
    }
  v152 = 0;
  if (isset(f158))
    {
    animationInterval = 2;
    new.room(Logic1);
    }
  else
    {
    new.room(Logic73);
    }
  }
return();

I still can't figure out why `normal` and `slow` increments the time (seconds) but not for `Fast` and `Fastest`

Might not be worth fixing also since this seems to me a version with no copy protection?

Pages: [1] 2

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

Page created in 0.049 seconds with 20 queries.