Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013) - Page 2

Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Jools »

That script doesn't have to be run from npp. It's a bat file, anything can run it. I just wanted to show how easy it is to open the infolog file with an application such as notepad. I think all windows versions include notepad.

Linux users probably already know where stuff is and how it works.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by jamerlan »

Compilled under fedora 20 x64 and it works fine!

I love alt+enter. Previously I allways played in windowed mode because it was easy to switch to other windows. Now I can play fulscreen! And switch to windowed mode only when it's needed. Thanks!!

Alt+B visualizations are great! What yellow color means in Frame Grapher? Sim frames (red) are eating alot! Is it possible to understand what exactly eating cpu? Maybe divide simframe to pieces also?

What ThreadPool shows? I see some rare lines - does it means that threads are not used? :-D Maybe it's cool to show threads count near "ThreadPool" label.

Also I like idea of widgets warnings.

For Ally chat you need to press Enter then 2 times Alt. Maybe it's too much? I propose to open ally chat with double Alt without Enter also (and all other chats)

And yes, I can place russian marks! COOL :-D
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Forboding Angel »

Installer:
! disallow to install spring over existing installations / ask for uninstall first
- don't associate .sdf with spring.exe any more
#winning

May I suggest that spring stop using sdf file ext and instead use .SpringREP ?

One of the reasons is that SDF is already taken, and spring should do a better job of differentiating.

https://www.google.com/search?q=what+ar ... 2&ie=UTF-8
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by abma »

Forboding Angel wrote:May I suggest that spring stop using sdf file ext and instead use .SpringREP ?
this alone doesn't solve the problem that a specific engine version has to be launched. imo this is a feature request that goes to lobbies to launch specific engine version.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Forboding Angel »

True, but it would solve the semi-rare occasions that sdf is already associated with another program.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Funkencool »

Script.LuaUI.Function() seems to be broken?

Code: Select all

[f=0000042] Warning: Tried to call non-linked Script.LuaUI.CameraBroadcastEvent()
[f=0001428] Warning: Tried to call non-linked Script.LuaUI.ProcessAwards()
Neither showed up in the infolog with 96.0, and I don't see anything about it in the changelog.

Shift+esc and f11 weren't working for me either, but that could just be on my end. I'll test this a little further.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by jK »

Funkencool wrote:Script.LuaUI.Function() seems to be broken?

Code: Select all

[f=0000042] Warning: Tried to call non-linked Script.LuaUI.CameraBroadcastEvent()
[f=0001428] Warning: Tried to call non-linked Script.LuaUI.ProcessAwards()
Neither showed up in the infolog with 96.0, and I don't see anything about it in the changelog.

Shift+esc and f11 weren't working for me either, but that could just be on my end. I'll test this a little further.
Before it just silently failed. Your error was there never the less.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Funkencool »

That explains that then, thanks :-)

But my keybindings don't seem to be working anymore,

Code: Select all

	widgetHandler.actionHandler:AddAction(widget,'openMenu', openMenu, nil, 't')
	widgetHandler.actionHandler:AddAction(widget,'openWidgets', openWidgets, nil, 't')
	widgetHandler.actionHandler:AddAction(widget,'hideMenu', hideMenu, nil, 't')
	spSendCommands('bind S+esc openMenu')
	spSendCommands('bind f11 openWidgets')
	spSendCommands('bind esc hideMenu')
along with that, chili editboxes will no longer capture input either

edit: hmm, nm Shift+esc and f11 won't work regardless of those bindings
edit2: scratch that I was right the first time it's the bindings that aren't working
Last edited by Funkencool on 16 Mar 2014, 15:56, edited 1 time in total.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Silentwings »

jK wrote:Before it just silently failed. Your error was there never the less.
I'm not sure when you mean by "before" - but that CameraBroadcastEvent is working & recieving its arguments in BA 7.93 with 96.0.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by jK »

Silentwings wrote:
jK wrote:Before it just silently failed. Your error was there never the less.
I'm not sure when you mean by "before" - but that CameraBroadcastEvent is working & recieving its arguments in BA 7.93 with 96.0.
You call Script.LuaUI.Foo() BEFORE LuaUI ran and put their func into _G!
Once it did all following calls obviously work, but the first few ones don't!

To check if a func it linked use `if Script.LuaUI("Foo") then`
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Funkencool »

I looked into it last night and it seems the lock_camera widget that's supposed to link to it is disabled by default.

So basically now it just needs a way to handle that, to prevent error spam (which was always there but silent).
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Silentwings »

jK wrote:You call Script.LuaUI.Foo() BEFORE LuaUI ran and put their func into _G!
All I said is that the calls do work. (Once initialized, to make it clear to funk that its not the Script.LuaUI.Function() that's at fault, which I thought you hadn't).
the lock_camera widget that's supposed to link to it is disabled by default
It's not disabled by default, it's enabled and very regularly used.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Funkencool »

Looks like beherith disabled it about 4 months ago in BAR.

Code: Select all

widgetHandler.actionHandler:AddAction(widget,'openMenu', openMenu, nil, 't')
spSendCommands('bind S+esc openMenu')
On my key binding problem, I've figured out its :AddAction() that isn't working. So the bind is working but empty.

Was I doing it wrong to begin with and it's just now showing itself or has the behavior changed?
raaar
Metal Factions Developer
Posts: 1095
Joined: 20 Feb 2010, 12:17

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by raaar »

tested the portable version for windows with metal factions 0.7.

It had the same warnings people mentioned about the Script.LuaUI.Function() on the mex upgrader gadget and problems in a shield dmg gadget that was missing the synced code test at the beginning.

other than that, it seems to be working nicely.

Code: Select all

Installer:
 ! disallow to install spring over existing installations / ask for uninstall first
i usually install spring over my existing spring installation. Does this mean from now on i'll have to uninstall it first? will i lose data inside my games and maps subdirectories of the spring directory?
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Google_Frog »

Funkencool I have a report for the same issue http://springrts.com/mantis/view.php?id=4334
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Jools »

raaar wrote:

Code: Select all

Installer:
 ! disallow to install spring over existing installations / ask for uninstall first
i usually install spring over my existing spring installation. Does this mean from now on i'll have to uninstall it first? will i lose data inside my games and maps subdirectories of the spring directory?
I'm sure that's just a nag screen that can be circumvented.

I usually split my spring in a main stuff (exe and dll) and data stuff (games, maps, config, writedir). This way I can use the data dir both when I'm playing the regular game and testing the dev version. Since this approach works for latest dev version, why would it not work in spring 97 release one? Use portable version and put a springsettings.cfg file in same folder as spring, with this parameter:

Code: Select all

SpringData = <path to data dir>
This said, it's also a very good thing to have this warning included. A lot of problems have arisen from people not knowing where their stuff is.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by Silentwings »

i usually install spring over my existing spring installation. Does this mean from now on i'll have to uninstall it first?
Not "have to", but "if you don't you might/will break things" as we saw in all recent releases. It's an installer, not an update package.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Engine Testing - 96.0.1-340-g44711a4 (11. Mar. 2013)

Post by abma »

Post Reply

Return to “Engine”