2.7 vs 2.71

Started by kantor_98, Wed 01/03/2006 10:04:26

Previous topic - Next topic

kantor_98

Os 2.71 compatible with 2.7 ? I start the game in 2.7

Gilbert

There're big changes in string handling in V2.71 (even if you disable options like 'Enforce object-based scripting" and "Enforce new-style Strings" it's not guaranteed to work flawlessly), so you have two choices:
1. Just stick on with V2.7, or:
2. If you really want to use V2.71 (because you must use some of the new features or because you need some bugs fixed) Backup your game files first, and copy your game's folder to the AGS V2.71 folder, and open that new copy with V2.71 and see if you can/need to fix something to copile your game sucessfully.

SSH

Good advice before updgrading versions, but you probably wont have any problems.
12

kantor_98

Is there in work also a new version ? To now on what we must expect !!! ::)

Gilbert

V2.72 is in beta stage, you can always check that from the top stickies in the Technical forums.


Quote from: SSH on Wed 01/03/2006 10:16:09
Good advice before updgrading versions, but you probably wont have any problems.
Well it depends, if he/she used obsoleted functions which was broken (i.e. won't even work when those two options were unchecked, like InputBox() ), the game won't work without fixing. It's rare case though.

SSH

Gilbert, that's what probably means  ;) :P

AGS 2.72 beta is obsoleting GetGameParameter, which will only be used by people writing advanced scripts, generally. However, if you want to use the sprite width and height options of GetGameParameter there is a workaround that will stay compatible with AGS 2.72:

a) Create a Dynamic Sprite of the normal sprite you want to know the width of
b) Then use the DynamicSprite properties to get the height and width

Actually GetGameParameter's sprite width and height are a bit rubbish and the 2.72 replacements are much better, as the new one give them in standardised (320x200) co-ords, while the old one does it in whatever resolution they are in, and it is impossible to adjust these to work in every game setting.

12

Gilbert

#6
I wasn't dissing you, I was backing you up. ;)

Anyway since V2.72 is still in beta stage, it's not recommended to be used unless you know what you're doing anyway (especially when CJ is a crazy mood to add loads of awesome features that can break stuff := ).

RickJ

Quote
Is there in work also a new version ? To now on what we must expect !!! Roll Eyes
In the 5-6 years I've been here, this is the first time an new version has broken anything that was working in previous (recent) versions  (i.e. V2.71 String handling).        I believe this is pretty much a one time occurance and so I am not worried future versions of AGS not being compatible.   They are normally painless and trival unlike the most  recent version which was the exception, not the rul. 

SSH

2.72 currently breaks GetGameParameter, Rick, with no way to turn that off  ;)
12

RickJ

Thanks SSH, I didn't know about that one.   

Hehe, I am about to mention something about cleaning up the unhandled_event() handler so that it uses a consistent numbering/id system, which would likely break compatibility.   

CJ does do an excellect job of maintainng backward compatibility.  Since V2.7 introduced the OO script language and since there were bound to be some compatibility problems, this presented an opportunity do a number of things that were desired but not implemented because of compatibility problems.   

Gilbert

Quote from: RickJ on Wed 01/03/2006 16:19:08
In the 5-6 years I've been here, this is the first time an new version has broken anything that was working in previous (recent) versionsÃ,  (i.e. V2.71 String handling).Ã,  Ã,  Ã, 
Well, actually there're many occasions that broke stuff (actually this happened in every update, I'm talking about major ones), and it depends on whether you used some of the critical stuff in your game, say for example:
1. AGS V2 - major update, one obvious difference was that the wall system was gone, replaced by walkable areas
2. AGS V2.07 - obsoleted interface system and replaced by GUI system
3. AGS V2.2 - ditched SeeR scripting engine, used all new text scripting engine, two obvious changes were the "removal" of for loops and change in palette based scriptings
4. AGS V2.5 - Graphical Script completed removed
5. AGS V2.7 - New OO-style scripting
6. AGS V2.71 - Strings

However, since AGS was pretty complete for a long time now, so if you're troo afraid that something might not work in new versions, you may just stick to the version the game originally started with (unless an update is absolutely required). For some reasons I'll stick to V2.62 and won't use newer ones until I think it's worth doing so.

SMF spam blocked by CleanTalk