* *
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 17, 2017, 04:35:12 PM

Login with username, password and session length

Random Profiles

  • 20 Replies
  • 4830 Views
*

Offline BeasTie

  • Hero Member
  • *****
  • 2459
Re: Random Profiles
« Reply #15 on: May 15, 2015, 06:50:53 AM »
Yeah I have updated.c  8)

It's working fine, I was just checking I did it properly :)

*

Offline Bloodbane

  • Hero Member
  • *****
  • 3124
  • Dark Dragon
Re: Random Profiles
« Reply #16 on: May 17, 2015, 12:05:41 AM »
 Back to main topic, I've tried inserting timer in the code to prevent the need of 'pressing start' BUT what happened is this:

1. If I set timer shorter than 20 seconds, the next intro/profile will be played BEFORE main menu is entered
2. If I set timer longer than 20 seconds, the purpose of playing next intro/profile isn't achieved cause default intro would be played before timer ends

 Hmm.....

*

Offline BeasTie

  • Hero Member
  • *****
  • 2459
Re: Random Profiles
« Reply #17 on: May 17, 2015, 12:32:23 AM »
Yeah I tried editing too so it would check in_titlescreen instead of in_menuscreen, or check both, but it kept playing gif's on press start screen..

Thou it could be a nice effect for some mods.;)

*

Offline handsnfeetface

  • Jr. Member
  • **
  • 44
Re: Random Profiles
« Reply #18 on: February 15, 2017, 09:20:12 PM »
I really like the idea of a varied intro screen; helps bring that arcade authenticity.  Anyway, I'm trying to get this attract script running on version 4432 (to take advantage of the playwebm function).  I have both update.c and updated.c the way Bloodbane posted with only a bit of tweaking...

Code: [Select]
void main(){
    int Shown = getindexedvar(0);

    if(Shown == NULL() && openborvariant("current_scene") == "data/scenes/intro.txt"){
      int Play = getindexedvar(1);
      setindexedvar(0, 1);

      if(Play == 1){
        setindexedvar(1, Play+1);
playwebm("data/scenes/demo1.webm", 0);
      } else if(Play == 2){
        setindexedvar(1, 0);
playwebm("data/scenes/demo2.webm", 0);
      } else {
        setindexedvar(1, Play+1);
      }
    }
}

The problem is it doesn't seem to be working.  I've played through the intro screen multiple times by pressing start and leaving it be, but still no luck.  Is it something I messed up in the code, or maybe attributes (bitrate, etc..) of the webm files?

*

Offline Bloodbane

  • Hero Member
  • *****
  • 3124
  • Dark Dragon
Re: Random Profiles
« Reply #19 on: February 16, 2017, 10:51:35 PM »
 Have you set alwaysupdate 1 in script.txt?
 If you don't have that file then you need to make one and put it inside data folder together with models.txt and levels.txt

*

Offline handsnfeetface

  • Jr. Member
  • **
  • 44
Re: Random Profiles
« Reply #20 on: February 16, 2017, 11:14:44 PM »
I have not.  Thank you.


Edit)  Hoping that was my answer, but still no go.
« Last Edit: February 16, 2017, 11:33:04 PM by handsnfeetface »

 

Recent

Members
Stats
  • Total Posts: 46506
  • Total Topics: 3186
  • Online Today: 36
  • Online Ever: 316
  • (January 04, 2013, 09:43:02 AM)
Users Online
Users: 4
Guests: 23
Total: 27