Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dannymac247 on Thu 25/06/2020 21:02:57

Title: Exporting a game from 2.72 to 3.5
Post by: Dannymac247 on Thu 25/06/2020 21:02:57
So it was suggested that I update "Sophia McGrath and the Strange Invitation" from 2.72 to the latest version in order for it to be compatible with multiple platforms. I tried to import it into the 3.5 version, but it doesn't seem to be working and I'm not sure what I am doing wrong. It seems to be generating junk code in the rooms. Here is an example:

Spoiler
Code (ags) Select
Øyisý,q¶Å'fï‚kwH>â,¬­†e4éñdª‘b>}{y@@â,¬¹Å'h<ni%ÿý;‹l^\%$USglKïaMR.$Q›eB"/TN- ­’g2Æ'qtMî~n¶ŠX071%ZÛgL(ï‚kwH>â,¬­Å'kïawtL,O³~r4(jMBqqº=k>~u%0qe¶^ïuiiD7z(T'ïé{tº‚'x{fA:qL¶^ï7mRN2qHµ‘^Apky  ”Å'nBt6IHAma³‚F>sm%3Yn«‚E>~sfS÷G QjhD‚m3#7`©‰^~ljÿöqL¶^#ptpS=5:T'F>„{j
#d”Å']4VzfO6ubgE^~lj/=um»‚køJ\Û"º‚\CxwsD<p¹Å'h<ni%ÿý;‹l^\%$USglKïaMR.$Q›eB"/TN- T'BtkyH=zr»~kC/ztN;kag=(þ/LTÿ[Sgb=c(T1î^D”lO/\M(!,Kk>ÃœnzM1â,¬h¶‹A~wr>04(gËœÙ/(4îb¹†iC/ntQî^n¶Š3ï_tfX3~³‚ZEt{%Q={lT'F>„{j
z`©‰^~ljÿöqL¶^}|jQ/ospXÙ\wzR3:Dµ~[;tUtC3,'¬jh3tTtN9mspXÙ\wzR3:Dµ~[;tUtC3,'¬jh3t\fK9â,¬npXÙ|wzR3:Tº‚=4uizKBSq¨a8r(-î,:T'vÃœ+xD1â,¬h¶‹^=s(wN=y^©=þ>(I.îZN›=>X\%. ,QÅ'jH%T(Y'_“fGéñdª‘b>}{y@@â,¬¯Å'mBwy-mgL(ïSW%-`Å'aB#/WWÿ QLâ€"s>ïcPN2îXH•bÙu}sBBunµ=a>Æ'{uNB>^¨E"ïŠÿî;.g\Axxyÿ4{qgehC‚xtSî>oehC‚xtSî>(=:=ˆ(hK7ojgÅ'gïwwyR>{sT'K4‚|tQ3S`´‚=8pttFî4(‚=Ãœ…éñdª‘b>}msCîtn»i>Æ':d@î,.v==/VT3îQCqa(W$Å'=MX[%+ZDT'
function room_Load()
{
gui[0].Visible = false;
gui[1].Visible = false;
[close]

That was at the top of room0. It just looks like a mess to me.

Any notions on what I may be doing wrong?
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Crimson Wizard on Thu 25/06/2020 21:17:07
This is very strange. Well, it looks like being corrupted for some reason.

Maybe you could try importing in AGS 3.2.1, and then open 3.2.1 project with 3.5.0. If that works, that would mean that import process got broken in 3.5.0...

I will take a look too when get some spare time.
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Dannymac247 on Thu 25/06/2020 21:34:21
Worth a shot. I'll look for 3.2.
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Dannymac247 on Thu 25/06/2020 22:08:25
conversion to 3.2 had some problems but no sign of the mass of junk code. I'll see if I can get 3.2 running, then head up to 3.5.
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Crimson Wizard on Thu 25/06/2020 22:10:12
Notable switches in general settings are:

* Enforce object-oriented scripting (you may need to set false);
* Enforce new-style audio script (again set to false);

In 3.5.0 there's also "Script compatibility level" which is better leave at lowest ("3.2.1").
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Dannymac247 on Sat 27/06/2020 18:04:35
Where do I find those switches?
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Cassiebsg on Sat 27/06/2020 18:08:06
general settings
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Crimson Wizard on Sat 27/06/2020 18:13:29
Project Explorer -> General Settings -> Backwards Compatibility group, to be precise.
Title: Re: Exporting a game from 2.72 to 3.5
Post by: Crimson Wizard on Sun 28/06/2020 00:26:11
BTW, I found a mistake in 3.5.0, it does not import 2.72 room script correctly, this will be fixed in the next patch.