Adventure Game Studio

Community => Adventure Related Talk & Chat => Topic started by: Akatosh on Fri 25/08/2006 15:21:43

Title: Big Blue Infinity Cup!
Post by: Akatosh on Fri 25/08/2006 15:21:43
This is more a nice thought-play, but...

I lately digged out BG2 of a big pile o' trash ['Jagged Alliance 1', 'Dungeon Keeper', ... ;)] and whilst browsing the web for some nice mods, I noticed something... it's the expression 'Infinity Engine'. The point is, this engine is used for a sure lot o' Bioware games.
A strange thought made itself up in my mind... it's a huge lot o' work, but I'm kinda sure it's possible to do an Infinity-style game with the ags!

How?? you may now ask. Well, the perspective is isometrical - 2D, that is. The "rooms"'d be kinda friggin' huge, but I think one could manage that in a resolution like 800x600. The characters movement won't be as smooth as in the originals - even with diagonal loops - but you can't quite have everything.

The AGS-> RPG part is not much of a problem (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=13649.180) and with the help of the CCS plugin, you could have some scripting. The GUI concept is a non-issue (already shown), and some inventory management won't be too hard to make.

Who is with me?
Title: Re: Big Blue Infinity Engine Cup?
Post by: Privateer Puddin' on Fri 25/08/2006 15:30:14
Isometric can't be done very well in ags afaik, because of baselines
Title: Re: Big Blue Infinity Engine Cup?
Post by: charliechuck on Fri 25/08/2006 16:07:23
This is what I originally wanted to create, although over time I've limited the battles to a seperate room for ease of coding(although it's not essential for the"engine" i'veÃ,  created if you can call it that!) and the walking about with other characters always following is causing me problems. There's another topic somewhere in these forums on isometric, and the baselines are a problem especially with fences, gates etc. Clever use of scenery and walkable areas would be needed to get round this.

Quote from: Akatosh on Fri 25/08/2006 15:21:43
The AGS-> RPG part is not much of a problem

I've done nearly 4000 lines of code now, and I've only got 2 spell and item effects! although i do agree the actual coding is not that difficult using structs if you try and keep it organised.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Shane 'ProgZmax' Stevens on Fri 25/08/2006 21:26:49
Well, you could do isometric in AGS as long as you were prepared to script a good portion of it, but using a shovel as a hammer, while possible, isn't a great idea.
Title: Re: Big Blue Infinity Engine Cup?
Post by: monkey0506 on Sat 26/08/2006 01:43:43
Quote from: ProgZmax on Fri 25/08/2006 21:26:49using a shovel as a hammer, while possible, isn't a great idea.

No no...you mean, "using a hammer as a shovel". ;)
Title: Re: Big Blue Infinity Engine Cup?
Post by: Shane 'ProgZmax' Stevens on Sat 26/08/2006 10:07:19
No, I mean using a shovel as a hammer.  I've seen shovels break when used in this fashion, ergo, don't do it!
Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Sat 26/08/2006 14:04:41
They don't break if you hold them in the right way... near the point you use for smashing, that is ;)

And anyway, instead of drawing baselines, you *could* use objects and regions instead... y'know, with object[8].SetTransparency(80); or such...

And "hard hard work" doesn't mean it's impossible - like with the shovel. If it breaks, keep using the bigger half.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Sat 02/09/2006 15:09:55
Shall I do something like a tech demo? Would you then continue talking to poor :-\ me?
Title: Re: Big Blue Infinity Engine Cup?
Post by: Rui 'Trovatore' Pires on Sat 02/09/2006 15:45:46
Everyone likes a tech demo. :) If you can do one, go right ahead. It's always good practice, anyway.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Radiant on Sun 03/09/2006 13:09:40
I'm sure this is possible in AGS, but given the amount of scripting it would probably be easier (and more efficient, and less quirky) to do the same amount of scripting in Visual C++ or likewise.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Fabiano on Mon 04/09/2006 16:31:56
as charliechuck, I'm doing the same thing. I made the inventory interactions (char to char, equips, buy, sell) like the Infinity engine, some problems, but working on it. In the same way i'm doing the battles in other room, but didnt coded anything yet. The baseline problem, i worked out using walkable areas.

IMHO, with lots of work, you can do it. some stuff you cant, other you can solve. If I can help on anything, count me in.
Title: Re: Big Blue Infinity Engine Cup?
Post by: SSH on Mon 04/09/2006 16:37:56
I've used a sledgehammer as a shovel, and it can be quite good for breaking up hard earth.
Title: Re: Big Blue Infinity Engine Cup?
Post by: BunnyMilk on Tue 05/09/2006 10:28:25
I've thought about fiddling with an isometric game but not nearly on the scale of BG2 or anything like that. I was thinking more along the lines of an isometric style of graphics but I quickly found out this is one of the hardest things I could have tried.

The chances of you getting very far with this at all are pretty slim I think. It's a task on such a huge scale and I am pretty sure you alone will never pull it off but go right ahead and prove me wrong and I'll be pretty impressed.
Title: Re: Big Blue Infinity Engine Cup?
Post by: ciborium on Fri 08/09/2006 04:16:59
About the friggin' huge ISO backrounds, I seem to remember reading in the manual something about a vertical limit on backgrounds (something like twice the number of pixels as the vertical resolution.)
Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Sat 09/09/2006 14:21:18
//this code occours when the player walks off a screen edge
TintScreen(0,0,1);
player.ChangeRoom(xyz);

//and then, in every room, on player enters room
Tint Screen(0,0,0);

They won't notice the room change due to a "bug" in AGS (no fade in/out with tinted screen).
And I'm gonna do kinda a BG2-first-level clone as a tech demo. This could take a few/many weeks/months, but you *will* hear about me! AHAHAHA!

/note: Checking the limits, the only problem I notice is the limited number of dialogs. 30? Not more? Hm... we'll have to trickster.

/note note: So you say it's possible? Friggin' huge amount of work, but possible?
Title: Re: Big Blue Infinity Engine Cup?
Post by: Ashen on Sat 09/09/2006 14:28:38
Quote from: ciborium on Fri 08/09/2006 04:16:59
I seem to remember reading in the manual something about a vertical limit on backgrounds
That's in the BFAQ (http://americangirlscouts.org/agswiki/index.php/Graphics%2C_Characters%2C_Text_%26_Rooms#Scrolling_room_image_size_limits).

1,400 or 2,800 height limit (depending on whether you're using 320x2*0 or 640x4*0 res), and no width limit that I'm aware of.

Other limits are mentioned in the manual (http://www.adventuregamestudio.co.uk/manual/System%20limits.htm). It's a limit of 30 options per dialog, not 30 dialogs. The Dialog limit is 500 - which may still require a bit of trickstering (although I can't see why), but nowhere near as much.

Quote
//and then, in every room, on player enters room
Tint Screen(0,0,1);

You may already be doing this, but you might be able use the on_event function to save having to add that to each Room Script. There's only a eEventEnterRoomBeforeFadein event, but I think it still works, even if you don't SEE the fadein.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Tue 12/09/2006 12:27:16
K, so with 500 dialogs, this should be a non-issue. As this won't get a 1:1 remake of BG2.

I've already started working, declaring structs, arrays, more structs, thinking of a spellcastin' system, reading about the AD&D system, imitating the Baldur's Gate 2 - GUI (just with an additional status bar)...

The game will run 800x600 resolution.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Fabiano on Fri 15/09/2006 20:50:47
I'm waiting to see it done, man.  :D

How youll use the dialog system? AGS standart or try something like BG?
Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Sat 16/09/2006 15:39:58
I'm gonna *try* to implent something like the BG2 system, but I've already a LOT of work with this, so the first tech demo will most probably still use the AGS speech style.

I'm using structures to carry the statistics of both party members and spells.

The system the game uses is AD&D, in a somewhat simpler form than BG2 did.

A first screenshot: http://i8.photobucket.com/albums/a23/FAMILIAR_QUEST/scrnshot.jpg
There, we're seeing Minsc staring at his clone, probably wondering why he's both looking like a cleric and using the cleric bar  ;D. All GUIs but the top statusbar taken from Baldurs Gate.

Current problem

I want to use a different inventory for the spells than for normal items. I've tried, but the track thing somehow doesn't work, neither does the give-the-spells-to-a-dummy-character-and-make-him-the-player-character-for-a-split-second-or-such thing. Next, I'm gonna try to make a special guy for it, with the buttons showed determining on the value of the spell available[50, 5, 1] three-dimensional array (if ags features stuff like that), with the first number determining the specified spell, the second the party character, the third wheter it's priest or mage
Title: Re: Big Blue Infinity Engine Cup?
Post by: Fabiano on Tue 19/09/2006 20:42:38
I dont tried yet, but i guess you can make a custom inventory , that only show specific itens, like, with proprieties (Arcane Spell, Cleric Spell, Item), so you can have 3 inventories, each one showing one item subtype.

Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Tue 03/10/2006 16:31:46
Okay, I got it pretty much fixed. Only problem is the inventory won't work as in BG2 - you're going to get a simple window with probably a backpack-background-graphic and one showing your character to put the items on.

The spell system makes use of the 'Unhandled Event' to make anywhere-cast possible.

The spells are area-based, even magic missile, so aim only on stationary enemies.

Problem:
The game is, of course, 800x600, but the mouse coordinates used for the spell system only 300x200 or so. The coordinates are wrong, wrong, WRONG if the screen scrolled around. How to fix?
Title: Re: Big Blue Infinity Engine Cup?
Post by: Ashen on Tue 03/10/2006 16:37:22
At 800x600, I think the mouse/screen coords use 400x300. To correct screen coords for scrolling rooms (that IS the problem, right?), use GetViewportX/Y, e.g.:


cEgo.Walk(mouse.x + GetViewportX(), mouse.y + GetViewportY());

Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Mon 16/10/2006 11:24:19
It worked, and a new screenie is up there!
http://i8.photobucket.com/albums/a23/FAMILIAR_QUEST/screenie.png

-> Another Statusline added!
-> Iconbar now works!
-> Minsc looks different than Akatosh now!

Next, I'll complete the spell system (memorizing and learning is not there yet) and continue to work on the fight system (basic functionality is there, but... well... it's just basic.)
Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Fri 08/12/2006 15:21:03
Even though it seems this thread is a little bit dead, I'll continue with status reports.

The fight system is currently set up, you can equip stuff, inventory management is there, KI is in work, spell system 50% ready.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Ashen on Sat 09/12/2006 23:56:10
Out of curiousity:

I thought this began as an experiment with Isometric perspective - have you got that working? To be completely honest, that bit is more interesting to me than the fight/spell/inventory/etc systems.
Title: Re: Big Blue Infinity Engine Cup?
Post by: Akatosh on Sun 10/12/2006 10:58:35
Mainly, yes. It's held together mainly by tape and prayers, but... well, this is the way it works:

-> Everything isometric is an object.
-> And has two regions corresponding: One exactly in its shape, and one in the place which causes the baseline problems - the place where the character would have to be drawn in front of it.
-> Player walks onto it: The baseline gets moved, and the character is drawn in front of it.
-> Player walks off: The baseline is moved back to where it was.

It works suprisingly well... the only problem is when TWO characters are standing there, one on the 'problem region' and one in the wrong place. But I'm working on this, and I'll make it... I hope.

Download:
http://www.uploadyourfiles.de/d66a55c21195689cfd9ed65abfdfde42/81hd8/Download.html
Title: Re: Big Blue Infinity Cup!
Post by: Akatosh on Sat 13/01/2007 10:34:37
Sorry, I hate to bump old threads, but I really have to ask that question... I take any interest in this project has died?
Title: Re: Big Blue Infinity Cup!
Post by: Fabiano on Sat 13/01/2007 12:15:52
Nope. Not by me, I mean.
I'm still working (on freetimes, thats is, between job+gym+wow+wife+sleep) on my project, that is a Infinity -like based. Until now, I did:
- Inventory correlations (equip, trade, loot)
- Character correlations (Group, leader, reactions between chars)
- Isometric tests using a iso mapper for regions

And now, I stopped working on script for a while and began working on graphics.

But we wont let this die, dude.