Software instability?

Started by Peegee, Sat 09/04/2022 13:19:02

Previous topic - Next topic

Peegee

Hello Cassiebsg, Thanks for that info, I'll give it a try. So far I've done everything with ChangeView and SetView, it worked.
I still tested 2 levels, disaster. All the characters screw up, especially when there are Waits and sequences of animations, to turn their heads, change positions.

Peegee

Hello Crimson Wizard et EriOo, obviously it didn't work like that right away, we set up the change of playable character, by clicking on the characters or on buttons.

Crimson Wizard

#22
Quote from: Peegee on Tue 12/04/2022 09:12:33
Hello Cassiebsg, Thanks for that info, I'll give it a try. So far I've done everything with ChangeView and SetView, it worked.
I still tested 2 levels, disaster. All the characters screw up, especially when there are Waits and sequences of animations, to turn their heads, change positions.

I may only repeat the previous advices: try to create a smaller separate scene, and experiment with small command sequences there, until you get them working correctly. Then when you have a working example, use it everywhere in your actual rooms.

Also, I recommend learning how to write and use your own functions. Functions are good to program short actions that you use alot; with them you'll have a short sequence of commands written once as a function, and then call that function whenever you need that sequence. If you learn how to use script modules, you may put these functions there and they will be available for use in any room (level).

As a random example, following function would lock character to a view, run a blocking animation, and unlock to a normal view:
Code: ags

function AnimateOnce(Character *c, int view, int loop, int delay) {
    c.LockView(view);
    c.Animate(loop, delay, eOnce, eBlock);
    c.UnlockView();
}


and then you may just do:
Code: ags

    AnimateOnce(player, 51, 1, 3);



Also, I recommend to not use view numbers, because it's easy to forget what they mean. Instead try using view names. For each of your View, AGS creates a view name in script, in all caps. For example, if you have a view called PlayerViewNormal in the editor, then in script you may do:
Code: ags

    player.ChangeView(PLAYERVIEWNORMAL);

This will make it easier for you to understand what is happening there.

Peegee

I've been developing this game for more than a year, I made 7 big levels that turned perfectly, with the simple formulas that you write. I was beginning to know how to use this software. It had been shielded for months. From one day to the next, everything concerning the characters works badly, such as the untimely display of images, which come from the good views but not the good locations, reversals of the player characters (that, I ended up fixing), plus 2 changes to the general functioning usual. It's been days that I'm on 2 characters, I try everything, it never works. I sent the codes to my friend who taught me this software, who has played dozens of games with it, she can see that my codes are not aberrant. So lines of code that worked for months don't work anymore, you don't have to believe me but this software has gone crazy, general bug, hacking or what, I can't even fix some problems. Yes I could start from a blank level and try some systems again, frankly I don't have the courage.

Crimson Wizard

#24
Quote from: Peegee on Sat 16/04/2022 09:21:02I sent the codes to my friend who taught me this software, who has played dozens of games with it, she can see that my codes are not aberrant. So lines of code that worked for months don't work anymore, you don't have to believe me but this software has gone crazy, general bug, hacking or what, I can't even fix some problems.

Perhaps you could post them here and explain what does not work? If you look around these forums, you will see that many people have come with weird problems, and most of them were eventually solved.

Even if there's a bug in software, we must know what the problem is exactly, which script does not work as expected, and so on, otherwise nobody will be able to fix these. Just saying "software does not work" without actual, detailed examples will not solve anything, and this conversation will go nowhere.

Cassiebsg

Maybe post or send your game project (uncompiled), so people with code expertise and time can take a look at the code. I lack both, but some in here might be able to help.
There are those who believe that life here began out there...

Peegee

#26
 Thanks for your advices. PG

SMF spam blocked by CleanTalk