Menu

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.

Show posts Menu

Topics - a-v-o

#1
Hello everybody who was waiting for this great new feature  :o  in the flashlight plugin:

In version 1.2 the state of lighting is saved and restored with the game, so after restoring a saved game the lighting will be exactly as it was when it was saved. No more scripting is needed.

OK, I confess: I just added these few lines of code and changed the version number which was the most difficult part of the update.  ;D

And thanks to all who voted for this plugin.

Download here

Download other AGS scripts and plugins: http://ags.freie-ressourcen.de/
#2
In my game the wait cursor is invisible. So during blocking commands the player can't see it. But he can still move the mouse around and if it's over a GUI button then the mouseover-image is displayed.

I would want that the wait cursor doesn't trigger the mouseover-images.
#3
The new Plugin API for Delphi is ready. Please email me to get the files, if you're interested.

Maybe someone can host them as long as my server is down.

Thanks.
#4
How to reproduce:
1. Start a new game with resolution 800x600
2. Import a background 800x500 (not 600)

The relative room size won't be 400x300, but 400x250.

3. Test game
4. Move mouse cursor into the lower black area.

Illegal exception
An exception 0xC0000005 occured in ACWIN.EXE at EIP=0x00414ECA; program pointer is +31, ACI version 2.60.693, gtags (0,36)

The same exception occures when the character walks down into this black area, a GUI should be displayed in this area.


Next test with background 700x500:
Moving the mouse cursor over the right black area, the background from the left side is painted, same for a character walking there.
#5
Hello Chris,

for no reason I used the up-down wheel of my mouse over the dialogs pagem and AGS crashed:
There is a "Sorry, an error has occured" window with no more text in it and a Windows system error window over it which says that the application will be closed.
Details:
AGSEDIT verursachte einen Fehler durch eine ungültige Seite
in Modul AGSEDIT.EXE bei 0177:005317c7.
Register:
EAX=0143d970 CS=0177 EIP=005317c7 EFLGS=00210206
EBX=00eefad0 SS=017f ESP=00df0000 EBP=00df0008
ECX=014496a0 DS=017f ESI=00008af4 FS=4a67
EDX=00000048 ES=017f EDI=00eefa84 GS=4157
Bytes bei CS:EIP:
e8 64 b6 fc ff 89 45 fc eb 0b 8b 4d fc e8 67 bf
Stapelwerte:
014496a0 00df0018 00df0028 00532a24 00df0018 0143d970 00000001 00000e58 00000048 00000000 00df0044 0050ceb9 00000e58 00000e58 00000000 0143d970

This crash occurs no matter over which component the mouse cursor is and no matter which component has the focus.

I tested other pages (GUI, Inventory,...) but they are OK. Also moving the left-right wheel on the dialogs page doesn't crash AGS.
#6
Edit by strazer: v1.2 released

--

When I was checking someone's script I got crashs using the command SetFlashlightBrightness. When I looked into the source code of the plugin I realized that some functions were incomplete. But noone ever reported such a crash to me.

I recommend you replace your older flashlight-dll with this new version:
http://a-v-o.selfhost.de/ags/flashlight/

New feature (still experimental):
- darkness masks
if a character walks around with a flashlight then you can use the mask to create light-behinds (similar to walk-behinds).
warning: for each mask you need a hicolor-sprite with room size, so games can grow big and maybe slow down.
#7
In this new version there is a new unit (U_AGS_script_functions.pas). This unit wraps the access to many AGS script functions, so that they can be used in the plugin like normal delphi functions:

procedure CenterPlayerCharacter;
begin
       MoveCharacter (GetPlayerCharacter, 160, 100);
end;

Not all script functions are wrapped yet. And I only tested PlaySound, so you have the chance to become an alpha tester  ;D .

One function isn't available :o : IsSpeechVoxAvailable
Maybe CJ can check why GetScriptFunctionAddress doesn't give a pointer for this function.

More script functions will be available soon or on request.
#8
As someone had problems with the older version, I looked into the script and into the help file and realized that CJ added a roomwidth variable. So I changed the script.

Also changed: It can be defined how far the room should scroll. In the script I used 3/4 of the screen width.

Download for those who are interested:
ftp://a-v-o.selfhost.de/ags/SmartScrolling.txt
#9
Download here

You will find a functions reference in the readme.txt in the zip of the dll.
You can also download the source of the "game" that I used to test the plugin.
It demonstrates the following:

a) establish connections (interact with object on which Roger is standing at the beginning)
b) transmit player character coordinates (NPC SHADOW is put to the received coordinates)
c) transmit a string (the locationname at the current mouse position is sent)
d) transmit an integer (the object shape at Roger's position is sent, so that the picture is updated)

For local testing use 127.0.0.1 as ip. Then the NPC will act like Roger's shadow and follow him whereever he goes. The status line will tell the object name under your current mouse pointer position. The first 2 pictures will show the same shape like that on which Roger is standing or walking over.

b) and c) aren't designed for use with multiple connections. For a single connection to another test game the NPC will show the other player's position, the upper left picture will show the shape at this position. The status line will tell the locationname at which the other player is pointing with the mouse.

For more questions, please feel free to ask everybody except me ;D .

Remember: It's not like "one click and your game is a network game". There's a lot of scripting to be done. And there are still questions how to handle possible synchronization problems.

Download other AGS scripts and plugins: http://ags.freie-ressourcen.de/
SMF spam blocked by CleanTalk