Page 12 of 17

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 19 Dec 2011 21:44
by Yexo
bokkie wrote:NICE!

Not too much of a surprise but somehow you were a bit careful yourself :)
Main reason for that was the time frame. 1.2.0-beta1 is not far off, and introducing a big feature like this after the first beta is not a good idea.

Re: NoGo - A Scriptable Game Framework - v1.4

Posted: 19 Dec 2011 23:00
by Eddi
MinchinWeb wrote:As a thought exercise:
A reasonable expansion might be canals. Then the following functions would make the list. Again, maybe removals should be restricted to non-owned or town-owned canals.
  • GSMarine.BuildBuoy
    GSMarine.BuildLock
    GSMarine.BuildCanal
    GSMarine.RemoveBuoy
    GSMarine.RemoveLock
    GSMarine.RemoveCanal
I've never done it, but I think you can build 'canal bridges', and so the bridge functions should be opened up to canals as well.
i'd extend this to rivers as well, so a GS could make cut off rivers flood until they find a connection again.

Re: NoGo - A Scriptable Game Framework - v1.4

Posted: 19 Dec 2011 23:36
by Torrasque
TrueBrain wrote: PS: I committed NoGo to trunk ;) 1.5 will be last custom build, tomorrow night you can just download the latest nightly.
Congratulation! Thanks for the hard work.

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 20 Dec 2011 03:03
by MinchinWeb
So I managed to break it again...
NoGo v1.5 x64 on Windows 7
Fullscreen capture 19122011 62450 PM.bmp.jpg
Fullscreen capture 19122011 62450 PM.bmp.jpg (37.6 KiB) Viewed 2060 times

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 20 Dec 2011 08:19
by TrueBrain
Do you have a minimal script that triggers this error? As it should be impossible (hence the NOT_REACHED :P).

Re: NoGo - A Scriptable Game Framework - v1.4

Posted: 20 Dec 2011 15:12
by Timmaexx
Torrasque wrote:
TrueBrain wrote: PS: I committed NoGo to trunk ;) 1.5 will be last custom build, tomorrow night you can just download the latest nightly.
Congratulation! Thanks for the hard work.
From me too! That is really great!!!

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 20 Dec 2011 15:38
by MinchinWeb
TrueBrain wrote:Do you have a minimal script that triggers this error? As it should be impossible (hence the NOT_REACHED :P).
I'll have to add that to my accomplishments: The Impossible :P

As for a script, I don't have anything useful at this computer right now, and won't until tonight (i.e. 9 hours from now at the earliest). My code is all online at Google code, but the only place it tries to build a bridge, if memory serves, is here, where it 'builds' everything in test mode to determine the cost, and here where it builds everything for real.

P.S. There's no rescangame command available at the in-game console. Should one be added for consistency? (There's one for AI's and NewGRF's)

Re: NoGo - A Scriptable Goal Framework

Posted: 20 Dec 2011 20:49
by Transportman
TrueBrain wrote:
Transportman wrote:If I understand the changelog for r23310 correctly, it is now (partially) in trunk.
I am sorry, but it is not.

I did commit some updates for the TownGUI (it now shows a bit more information about what is going on), and also prepared it for a solution like NoGo (although it can also be used by anything else). And I added the long overdue ability for AIs to see if a town needs food or water (they couldn't so far).

As a nice side effect it did make my patch-queue a lot shorter, but there is no NoGo code yet in trunk.
Is it now (partially) in trunk, or am I just terrible at understanding changelogs?

Re: NoGo - A Scriptable Game Framework - v1.4

Posted: 20 Dec 2011 21:35
by Lord Aro
TrueBrain wrote:PS: I committed NoGo to trunk ;) 1.5 will be last custom build, tomorrow night you can just download the latest nightly.
It is ALL now in trunk :)

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 06:16
by 11Runner
I love the new framework! :D

It would be nice if we could have a function to change the bank balance of a company (GSCompany.SetBankBalance, GSCompany.AddMoney, GSCompany.Remove Money, GSCompany.TransferMoney, etc.)

Re: NoGo - A Scriptable Game Framework - v1.4

Posted: 21 Dec 2011 08:29
by Transportman
Lord Aro wrote:
TrueBrain wrote:PS: I committed NoGo to trunk ;) 1.5 will be last custom build, tomorrow night you can just download the latest nightly.
It is ALL now in trunk :)
Apparently I am also terrible at reading this forum...

But great to see it in trunk already, now I can also use it with my running game if I want, without making it incompatible with trunk.

Just one question:
How many GameScripts can be active at once? If I look at the Settings screen, I get the feeling it is just 1.

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 12:44
by TrueBrain
Yes, only 1 GS per game.

MinchinWeb: do you have a small script for me that causes that NOT_REACHED?

Added rescangame for you, plugged a few holes. I suggest you all upgrade to upcoming nightly (20:00 CET).
11Runner wrote:(..)
It would be nice if we could have a function to change the bank balance of a company (GSCompany.SetBankBalance, GSCompany.AddMoney, GSCompany.Remove Money, GSCompany.TransferMoney, etc.)
Not going to happen for now. There is no real reason (except cheating) to have it, and would do more harm (confuse the player, annoy the player, ..) than good. Unless of course someone present a good use-case, but I haven't seen any yet ;)

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 13:41
by Arie-
Could think of one reason why it "should" be there: tutorial game. And when a player finishes the tutorial, put the balance to a normal game start value.

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 14:01
by Torrasque
Arie- wrote:Could think of one reason why it "should" be there: tutorial game. And when a player finishes the tutorial, put the balance to a normal game start value.
Or you could apply a fine/rewards if an goal is or is not reached.

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 15:16
by MinchinWeb
TrueBrain wrote:MinchinWeb: do you have a small script for me that causes that NOT_REACHED?
I was trying to isolate the problem last night, but didn't have much luck. I've attached the full script (with libraries) below. The bridge building function calls are in my MetaLibrary in Pathfinder.Road.nut at lines 638 and 718.
TrueBrain wrote:Added rescangame for you, plugged a few holes.
Thanks!

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 20:00
by fieari
Also imagine a script that detects if a player has money above a certain level, or even above a certain ratio compared to other players, and starts hitting them with random disasters-- including pure monetary penalties. It could show up in the newspaper that "[RANDOMNAME], a member of [TRANSPORT COMPANY NAME]'s board of trustees has been accused of embezzling. Before indictment, [RANDOMNAME] has fled the country with an estimated [LARGEAMOUNTOFMONEY]." Or something to that effect, anyway.

Tweaking with bank accounts could also create scenarios with constant resource drains every year. You could add taxes. It could implement infrastructure maintenance costs. It could supplement subsidies with bonuses for route completion. It could offer quest rewards.

I don't feel like the possibility for cheating is a good excuse for not allowing money tinkering. Presumably everyone on the server would be aware of the scenario, and there can be social ramifications to running a server which gives infinite money to player 1, while everyone else plays normally. But heck, I can even see where that might possibly be a fun server, if the person with unlimited funds was acting something like a "Game Master", modifying terrain and plopping industries/towns in response to certain criteria. Like a game script could do, but run manually by a person in real time. And if it turns out NOT to be fun, then that script could be set aside as worthless and no one would play it.

The only issue is making sure that all the players are on board with it, and understand what kind of scenario they are getting into before they start playing.

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 20:53
by Zuu
  • When executing "restart" in the console, the game script is not reloaded from disk. For AIs this happen when you restart the game from the console. Very useful for testing/debugging.
  • Would like to see AIGoalList so that there is a way to find Goals if you have lost the index to them.
Edit: It appears that after having went out to the menu and back again, I can reload my GS by using "restart". Maybe the problem I experienced was related to the fact that the new version of the script had syntax errors?

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 20:56
by TrueBrain
Zuu wrote:
  • When executing "restart" in the console, the game script is not reloaded from disk. For AIs this happen when you restart the game from the console. Very useful for testing/debugging.
  • Would like to see AIGoalList so that there is a way to find Goals if you have lost the index to them.
Second: good idea.
First: should happen ... odd; will check it out

And k k, good use-cases for money. It is still not that simple, as if you randomly remove money, you will be annoyed REALLY fast :) But we have some ideas .. will work it out a bit later ;)

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 20:56
by Yexo
Zuu wrote:
  • When executing "restart" in the console, the game script is not reloaded from disk. For AIs this happen when you restart the game from the console. Very useful for testing/debugging.
  • Would like to see AIGoalList so that there is a way to find Goals if you have lost the index to them.
For AIs you don't even need to restart the whole game. Just clicking "Reload" in the AI debug window will reload them from disk.

Re: NoGo - A Scriptable Game Framework - v1.5

Posted: 21 Dec 2011 23:11
by Arie-
With respect to the use case taxes I'd suggest something in addition to YAIM, taxrates growing more than lineair to the ammount of cash a company has.