Author Topic: MODULE: Credits v1.19  (Read 21913 times)

Nishuthan

  • Peace
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re: MODULE: Credits v1.19
« Reply #60 on: 29 Oct 2017, 10:54 »
Thanks

Nishuthan

  • Peace
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re: MODULE: Credits v1.19
« Reply #61 on: 29 Oct 2017, 11:06 »
I have a Error I'm using AGS 3.4.0.
The Error is  "Credits.asc(80): Error (line 80): Undefined token 'StrCopy' "
How do i correct it ?

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: MODULE: Credits v1.19
« Reply #62 on: 29 Oct 2017, 12:07 »
The Error is  "Credits.asc(80): Error (line 80): Undefined token 'StrCopy' "

StrCopy is an obsolete function which works with old-style AGS strings, it has been abandoned like 10 years ago.

Looks like this module may use an upgrade...

As the last resort, if there is no modern version of this module, go to the General Settings page in the editor, find "Backwards Compatibility" section and set "Enforce new-style strings" to FALSE.
« Last Edit: 29 Oct 2017, 12:09 by Crimson Wizard »

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Re: MODULE: Credits v1.19
« Reply #63 on: 29 Oct 2017, 13:14 »
@Nishuthan:
You're using the credits module v1.17 or older (which does contain the - as Crimson Wizard said - obsolete StrCopy).
Download v1.19 here, which works fine.

With v1.19 you might bump into an Undefined token 'PlaySound' error though.
I just quote the solution to this, as stated by Crimson Wizard earlier in this thread:
"this is because PlaySound is a deprecated function. To enable it you need to turn "Enforce new Audio scripting" off in the Backwards-compatibility settings of your project."

Re: MODULE: Credits v1.19
« Reply #64 on: 25 Jan 2018, 02:13 »
I'm still fairly new to using AGS so it's possible I'm simply missing something obvious here... even after importing the main script directly copying the room script from the example game into the room script of my own game, no credits appear when I'm in that room... no errors appear either, so I've no clue as to what I'm doing wrong, exactly.

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Re: MODULE: Credits v1.19
« Reply #65 on: 25 Jan 2018, 23:54 »
@Lurdiak:

Here's 2 examples:

Scrolling example:
Code: Adventure Game Studio
  1. Credits[0].DefaultCreditColour=15;
  2. Credits[0].DefaultCreditFont=2;
  3. Credits[0].DefaultCreditX=eCreditCentred;
  4.  
  5. Credits[0].DefaultTitleColour=3;
  6. Credits[0].DefaultTitleFont=0;
  7. Credits[0].DefaultTitleX=eCreditCentred;
  8.  
  9. Credits[0].CreditStyle=eCreditScrolling;
  10.  
  11. Credits[0].DefaultCreditStartTransition=eCreditScrolling;
  12. Credits[0].DefaultTitleStartTransition=eCreditScrolling;
  13. Credits[0].TypeDelay=2;
  14.  
  15. Credits[0].AddTitle("Programming by:");
  16. Credits[0].AddCredit("name1[[name3[[name3");
  17. Credits[0].AddTitle("Testing by:");
  18. Credits[0].AddCredit("name1[[name2[[name3");
  19. Credits[0].Run();
  20.  

Typing example:
Code: Adventure Game Studio
  1. Credits[0].DefaultCreditColour=15;
  2. Credits[0].DefaultCreditFont=2;
  3. Credits[0].DefaultCreditX=eCreditCentred;
  4.  
  5. Credits[0].DefaultTitleColour=3;
  6. Credits[0].DefaultTitleFont=0;
  7. Credits[0].DefaultTitleX=eCreditCentred;
  8.  
  9. Credits[0].CreditStyle=eCreditStatic;
  10.  
  11. Credits[0].DefaultCreditStartTransition=eCreditTypewriter;
  12. Credits[0].DefaultTitleStartTransition=eCreditTypewriter;
  13. Credits[0].TypeDelay=2;
  14.  
  15. Credits[0].AddTitle("Programming by:");
  16. Credits[0].AddCredit("name1[[name3[[name3");
  17. Credits[0].AddTitle("Testing by:");
  18. Credits[0].AddCredit("name1[[name2[[name3");
  19. Credits[0].Run();
  20.  

Re: MODULE: Credits v1.19
« Reply #66 on: 26 Jan 2018, 01:18 »
Those certainly are examples, but it doesn't help me understand how I'm supposed to use the code at all.

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Re: MODULE: Credits v1.19
« Reply #67 on: 26 Jan 2018, 01:30 »
works fine when placing it in the room_AfterFadeIn function

Re: MODULE: Credits v1.19
« Reply #68 on: 26 Jan 2018, 02:28 »
Ah, I see. So if the room script is

Code: Adventure Game Studio
  1. function room_AfterFadeIn()
  2. {
  3.       Credits[0].DefaultCreditColour=15;
  4.     Credits[0].DefaultCreditFont=2;
  5.     Credits[0].DefaultCreditX=eCreditCentred;
  6.      
  7.     Credits[0].DefaultTitleColour=3;
  8.     Credits[0].DefaultTitleFont=0;
  9.     Credits[0].DefaultTitleX=eCreditCentred;
  10.      
  11.     Credits[0].CreditStyle=eCreditScrolling;
  12.      
  13.     Credits[0].DefaultCreditStartTransition=eCreditScrolling;
  14.     Credits[0].DefaultTitleStartTransition=eCreditScrolling;
  15.     Credits[0].TypeDelay=2;
  16.      
  17.     Credits[0].AddTitle("Programming by:");
  18.     Credits[0].AddCredit("name1[[name3[[name3");
  19.     Credits[0].AddTitle("Testing by:");
  20.     Credits[0].AddCredit("name1[[name2[[name3");
  21.     Credits[0].Run();
  22.      
  23. }

I should be seeing the default credits scrolling in as soon as I enter it?

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Re: MODULE: Credits v1.19
« Reply #69 on: 26 Jan 2018, 10:21 »
Yes, sir.

Re: MODULE: Credits v1.19
« Reply #70 on: 26 Jan 2018, 16:38 »
It still isn't working for some reason. :(

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on a game that was nominated for an AGS Award!
Re: MODULE: Credits v1.19
« Reply #71 on: 26 Jan 2018, 17:22 »
Make sure that you have LINKed the event in the editor, and did not just copy/pasted "function room_AfterFadeIn()" into the script (it won't work!).
There are those who believe that life here began out there...