Home   Help Search Login Register  

Author Topic: custom logo  (Read 956 times)

0 Members and 1 Guest are viewing this topic.

vanGoGH

  • Guest
custom logo
« on: 24 Jul 2003, 19:00:56 »
In my intro I want a custom logo to be displayed. In my intro-script I use

titlersc["logotje","plain"]

to display the logo. However when I play the intro, and the logo the logo is to be displayed (ie the above script line is executed) Flashpoint crashes and returns to windows without leaving an error. What is wrong? How do I show the logo?

----description.ext----

onLoadIntro = " "
onLoadIntroTime = false
onLoadMission = " "
onLoadMissionTime = false

class CfgSounds
{
sounds[] = { regen_binnen, regen_buiten, hit_snd, ohmygod, radio, hit_snd2 };

class regen_binnen
{
name = "regen_binnen";
sound[] = {"regen_binnen.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_regenbinnen
};
};


class regen_buiten
{
name = "regen_buiten";
sound[] = {"regen_buiten.ogg", db+80, 1.0};
titles[] =
{
0, $STRM_regenbuiten
};
};


class hit_snd
{
name = "hit_snd";
sound[] = {"hit_snd.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_hit_snd
};
};

class ohmygod
{
name = "ohmygod";
sound[] = {"ohmygod.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_ohmygod
};
};

class radio
{
name = "radio";
sound[] = {"radio.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_radio
};
};

class hit_snd2
{
name = "hit_snd2";
sound[] = {"hit_snd2.ogg", db+50, 1.0};
titles[] =
{
0, $STRM_hit_snd2
};
};

};


class RscTitles
{
    titles[] = {logotje};
 

    class logotje
    {
        idd = -1;
        movingEnable = 0;
        duration = 3;
        fadein = 0;
        name = "logotje";
        controls[] = {"logotje"};

        class logotje
        {
            type = 0;
            idc = -1;
            style = 48;
            colorBackground[] = {0, 0, 0, 0};
            colorText[] = {1, 1, 1, 1};
            font = "AudreysHandI48";
            size = 1;
            text = "logotje.paa";
            x = 0; y = 0; w = 1; h = 1;
        };
    };
};

vanGoGH

  • Guest
Re:custom logo
« Reply #1 on: 24 Jul 2003, 19:11:05 »
i think it was the logotje.paa cause I changed it into a jpg and now it doesnt crash anymore, though it gives an error

dimensions 268x185 is not 2^n

what does that mean?? how to solve it?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:custom logo
« Reply #2 on: 24 Jul 2003, 19:13:04 »
You'll have to resize your picture to the nearest value of power of 2^. Would 256x128 make the picture look bad? Or try 256x256?
Not all is lost.

vanGoGH

  • Guest
Re:custom logo
« Reply #3 on: 24 Jul 2003, 19:48:42 »
changed the logo size to 512x256 and changed the w and h to

w = 0.4; h = 0.2;

no errors anymore but the logo doesnt show up..

Offline rhysduk

  • Former Staff
  • ****
Re:custom logo
« Reply #4 on: 24 Jul 2003, 19:55:50 »
Hi VanGogh - hows it going -

i dont want to steal ur post so i will ask first - the following lines u have in the dexcription.ext file :-

class RscTitles
{
    titles[] = {logotje};
 

    class logotje
    {
        idd = -1;
        movingEnable = 0;
        duration = 3;
        fadein = 0;
        name = "logotje";
        controls[] = {"logotje"};

        class logotje
        {
            type = 0;
            idc = -1;
            style = 48;
            colorBackground[] = {0, 0, 0, 0};
            colorText[] = {1, 1, 1, 1};
            font = "AudreysHandI48";
            size = 1;
            text = "logotje.paa";
            x = 0; y = 0; w = 1; h = 1;
        };
    };
};


I want to confirm that these are the lines taht are used to bring up the logo --- i shall try and let u know my results...

Could i possibly use this board for my same problem please ?

________________________________________________________

Instead of using the line to execute the script - is it possible to add ur logo so it appears where the other logo's appear .. Under EFFECTS ? i was thinking along the lines of editing the CONFIG file - althoguh i aint got no exper. wiht this sorta thing..

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

vanGoGH

  • Guest
Re:custom logo
« Reply #5 on: 24 Jul 2003, 20:07:01 »
dont think the answer yes or no would make a lot of difference since you already posted your thing, but i dont care. As long as I can get the answer to my question. Why doesnt the logo show up?

vanGoGH

  • Guest
Re:custom logo
« Reply #6 on: 24 Jul 2003, 21:00:34 »
got the logo to show, I had to put in a slight pause before calling the logo. It still crashes when using a .paa file. I thought u could use .paa files. How should I otherwise use transparency? Is there some special way of creating the .paa files?