copying GUIs

Started by viktor, Mon 21/06/2004 11:34:48

Previous topic - Next topic

viktor

ok...
I have a little problem.
I just downloaded the newest wersion of AGS.  On the prewious wersion I could simpoly copy the GUI templates in the AGS folder and I could choose them when I started a new game. But now wherever I copy them in I can't use them. Where do I have to copy in the GUI files, so that I can use them in a new game?
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Ginny

I think there's something called GUI export, which exports all the GUIs in a game, and you can import them all later, instead of using a template to do this. Maybe that'll work?
Try Not to Breathe - coming sooner or later!

We may have years, we may have hours, but sooner or later, we push up flowers. - Membrillo, Grim Fandango coroner

viktor

yes. I could do that but for that I would have to download a proper file am I right?
Corect me if I am wrong. I ddon't know If I actualy understood. I have a file with templates and if I want to use them in a game I have to copy them in the AGS folder.
But what yousaid is actualy the same thing. First I would have to copy the files ion to the folder then export the gui from a new game and the import it back in to the game I am creating...
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Ashen

#3
AFAIK, game templates (.agt files) should work when they're put into the AGS folder (C:\AGS for example), while exported GUI's (.gui files) need to be imported using the 'Import GUIs..' button on the GUI editor. Which type are you trying to use?

EDIT: Ok, I see the problem. That zip doesn't actually contain a template, just the game files. Extract it, open it in AGS, and choose 'Make template from this game..' from the Game options. Now you should be able to create new games using the verbcoin.
I know what you're thinking ... Don't think that.

viktor

damn it I don't know. I tryed to look it up but I can't find none of the two listed files. I downloaded the MI verb coin from here: http://koti.mbnet.fi/dima/downloads/verbcoin.zip
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

viktor

ok never mind.
I solved the problem. I had to copy it in an already existing game so that the ac2game.dta could be overvriten and the GUI replaced.
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

viktor

shit but now I have a new problem. When I export the gui and import it in to the already existong game some script erors acur. I don't know a thing ybout scripting so I don't know what's wrong.
Here is the  script.

if (interface == 1) {
    if (button == 0) //Resume
      GUIOff(1);
     
    else if (button == 2){ //Save
      GUIOff(1);
      SaveGameDialog();
      }
 
    else if (button == 3){ //Load
      GUIOff(1);
      RestoreGameDialog();
      }
     
    else if (button == 4){ //Restart
      GUIOff(1);
      RestartGame();
      }
 
    else if (button == 5){} //Options
 
    else if (button == 6){} //Credits
 
    else if (button == 7) //Quit
      QuitGame(1);

  }  // end if interface 2
  if (interface == 3){
    if (button == 1){
      usedgui = 1;
      ChangeCursorGraphic(0,12);
      ChangeCursorGraphic(1,12);
      ChangeCursorGraphic(2,12);
      ChangeCursorGraphic(3,12);
      SetCursorMode(8);
    }
    if (button == 2){
      usedgui = 0;
      ChangeCursorGraphic(0,2054);
      ChangeCursorGraphic(1,2060);
      ChangeCursorGraphic(2,2057);
      ChangeCursorGraphic(3,2058);
      EnableCursorMode(0);
      EnableCursorMode(1);
      EnableCursorMode(2);
      EnableCursorMode(3);
      SetCursorMode(0);
    }
  }
/*  if (interface == 3){
    if (button == 0){
      SetActiveInventory(GetInvAt(mouse.x,mouse.y));
      SetCursorMode(4);
      GUIOff(3);
    }
  }*/
  if (interface == 4){
    if (button == 3) SaveGameDialog();
    if (button == 4) RestoreGameDialog();
    if (button == 5) QuitGame(1);
    if (button == 7) Display("Multi interface demo");
  }
 

I have acactly the same setings as the werb coin but it still doesn't work.
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

viktor

or could someone at least tell witch part of this script suports the inventory section of the coin. I mean whitch part makes it posible so that I can use the coin in the inventory.
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

TerranRich

viktor, instead of double-posting, lke you seem to do a lot, please edit your last post instead.
Status: Trying to come up with some ideas...

Scorpiorus

The verbcoin interface is not only a GUI with its related script but there is also additional script code in the repeatedly_execute as well as in the on_mouse_click function. The easy way would be to start building your project on top of the existing template, but if you are in a mid-design and really need to import the verbcoin stuff then it would require to copy all the related code from the template as well as to import all GUIs. Still, you may get error messages here and there in case there is a conflict between the imported code and the one you already had before.

SMF spam blocked by CleanTalk