Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - proximity

#41
Hello. I would like to get a step-by-step guide about implementing Steam Leaderboards to AGS :smiley:
#42
Would you lock this thread please ? It's finished.
#43
Quote from: Crimson Wizard on Fri 06/05/2016 13:37:56
Quote from: proximity on Fri 06/05/2016 11:55:35
Full screen mouse issue has been corrected. Cursor moves slower than before but what the hell, it's fixed :smiley:
This is precisely why I added cursor speed setting to the setup (also, Mouse.Speed in scripts)!
I found that speed of 1.5-2.0 works pretty well for me.


Oh, that's even better. Thank you very much.
#44
Okay. I've switched from 3.4.0.6 to 3.4.0.7 and it worked like a charm. Full screen mouse issue has been corrected. Cursor moves slower than before but what the hell, it's fixed :smiley:

Thank you so much Crimson to finish this before my deadline. I'm grateful to you.
#45
Trying it right now !
#46
Quote from: Crimson Wizard on Tue 03/05/2016 01:20:55
Quote from: proximity on Tue 03/05/2016 00:59:30
Note : I think I've discovered something. In 3.4.0.6, when you update scripts , old save games (saved before update) aren't affected at all, give no error and work like a charm. Is it known or I've just discovered it ? :smiley:
Not every change breaks savedgames. Only those that alter the number of game objects, including global variables in script (but not local ones!). If you just modify some functions, they will still work. 3.4.0 is not different from previous version in that aspect.

Of course. I haven't added anything new. Like you said, I've just modified functions. False alarm :)
#47
Quote from: Crimson Wizard on Mon 02/05/2016 02:13:29
Okay, an update. We just had one (probably most difficult) "blocking" issue resolved; I am planning to work hard next days, getting the rest of the merge done.
I will have to make a break for several weeks soon, so I hope I can release a new Beta version on this week.

Whoaa ! That's wonderful news man :smiley: I'm dying to switch from 3.4.0.6 to merged edition. You've really worked hard.

Note : I think I've discovered something. In 3.4.0.6, when you update scripts , old save games (saved before update) aren't affected at all, give no error and work like a charm. Is it known or I've just discovered it ? :smiley:
#48
Quote from: Crimson Wizard on Mon 18/04/2016 22:05:15
Quote from: proximity on Mon 18/04/2016 22:00:09
It's been a while. Any news ? I'm close to release my game. May be in 2 two weeks. Am I going to have a chance to try the merged version ? :smiley:
I do not know. We've met a problem that delayed us again. Currently I am waiting an answer from another team member.

Okay then. I'll be waiting for good news. :smiley: Good luck.
#49
It's been a while. Any news ? I'm close to release my game. May be in 2 two weeks. Am I going to have a chance to try the merged version ? :smiley:
#50
Quote from: Crimson Wizard on Thu 24/03/2016 21:19:20
Quote from: proximity on Thu 24/03/2016 19:57:35
Crimson, do you plan to include "changing hotspot and object names at run-time" to the upcoming merged version ?
No... where it comes from?
I do not really plan to add anything else except bug fixes, because this version was developed for too long.
If someone else will have time to work on it, while I am merging the two versions, we may take it, but still I will not like to add some serious changes.

There are already custom properties that you may change at runtime in this version, and that may be used to substitute object names for now.

No problem. I just wanted to know it before I dive into hotspots' and objects' names work.
#51
 Crimson, do you plan to include "changing hotspot and object names at run-time" to the upcoming merged version ?
#52
Quote from: monkey0506 on Sun 20/03/2016 07:03:47
Well a function-local variable would always be reset every time the function is called anyway. :P

However, Steam doesn't have any issues with you "setting" an already set achievement, so there's no harm in calling the function more than once. If you're worried about the unnecessary callbacks, you could try to cache the results in-game, but that could easily get out of sync. A more efficient solution might be to use the engine's built-in scoring system, using game.score and GiveScore. You could then have something like:

Code: ags
function on_event(EventType event, int data)
{
  if (event == eEventGotScore)
  {
    if ((game.score >= 100) && (Game.DoOnceOnly("ACHIEVEMENT_01")))
    {
      AGS2Client.SetAchievementAchieved("ACHIEVEMENT_01");
    }
  }
}


Then whenever you call GiveScore and the score exceeds or equals 100, the achievement is set, without having to poll for it every single game loop.

:grin::grin::grin: No no no :cheesy: I just gave an example to specify what doitonce is. In fact, I was planning to use global variables for that which are easy to use and recognised by all scripts. Additionally, I'm using a bit different scoring system; floats keep track of characters' stats in percent form. So, if calling an unlocked achievement causes no trouble to game-play, i can easily make this :

Code: ags
function repeatedly_execute_always() {
   if (charstat > 99.99) {
     AGS2Client.SetAchievementAchieved("ACHIEVEMENT_01");
   }
}


Thanks for the help monkey0506. That will save me from creating unnecessary variables. I have already tons of them and i wouldn't want to add any if it isn't absolutely necessary.
#53
Hi. Are Steam Achievements one time thing or do i need to supply them with extra variables to ensure that they are triggered only once ?

For example :

Code: ags
function repeatedly_execute_always() {
    int doitonce=0;
    if (score == 100) {
        if (doitonce == 0) {
            doitonce=1;
            AGS2Client.SetAchievementAchieved("ACHIEVEMENT_01");
        }
    }
}


or is this just enough ? :

Code: ags
function repeatedly_execute_always() {
    if (score == 100) {
        AGS2Client.SetAchievementAchieved("ACHIEVEMENT_01");
    }
}

#54
Quote from: Crimson Wizard on Fri 18/03/2016 12:57:23
Just FYI, we are in the process of merging AGS 3.3.5 into 3.4.0. The 3.3.5 release was delayed because of several issues found, but these are dealt with now.

Wonderful ! We're eagerly anticipating it :)
#55
Thank you Jack and Kumpel. Then guest house it is :smiley:
#56
The Rumpus Room / What's is the exact word ?
Mon 14/03/2016 00:04:47
  Hi guys, i'm having trouble to find the right accommodation name for the building in my game. It's a private home and has 4 rooms for guests. Owner of the house rents those rooms. So, what is the exact word for this building ? Guest house ? Hostel ? Bed and breakfast ? Pension ? Inn ? Which one is appropriate ? :grin:
#57
Quote from: Crimson Wizard on Tue 09/02/2016 13:59:35
Quote from: proximity on Tue 09/02/2016 13:41:25
I was looking for a solution of weird mouse cursor movement issue on full-screen. It really annoys me and i guess it will absolutely annoy players :( Would you recommend me to switch to other versions ? I don't know if it is possible to switch from 3.4.0.6 to 3.3.4. (Game resolution is 960*540)
I see.

No, it won't be possible to switch versions.
I hope to finish 3.3.5 on this week, after which I will be working on merging 3.3.5 into 3.4.0 (which will carry mouse fix as well).
I predict that itself may take about a week.


Great news ! That's sooner than I've expected. When you release the merged edition, I'd gladly switch from 3.4.0.6 to it and share some feedback. I haven't encountered any editor or game crashes by 3.4.0.6. I believe I won't encounter any problems with the merged edition too.
#58
Quote from: Crimson Wizard on Sun 07/02/2016 14:25:38
Quote from: proximity on Sat 06/02/2016 15:03:02
Any news about 3.4.0.7 ? Release date is still unknown ?

Just in the post above I as saying, that I must finish 3.3.5 first, then merge into 3.4.0, and that will be next release.

Are you looking for particular fixes/features? The development of 3.4 was practically stalled while I was working on 3.3.5.

I was looking for a solution of weird mouse cursor movement issue on full-screen. It really annoys me and i guess it will absolutely annoy players :( Would you recommend me to switch to other versions ? I don't know if it is possible to switch from 3.4.0.6 to 3.3.4. (Game resolution is 960*540)
#59
Any news about 3.4.0.7 ? Release date is still unknown ?
#60
Thanks AnasAbdin. I wish you the best luck to complete your game ;)
SMF spam blocked by CleanTalk