SVN recent changlelog commit and notes

SVN recent changlelog commit and notes

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

Moderator: Moderators

Post Reply
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

SVN recent changlelog commit and notes

Post by AF »

Unitsync is now installed to libdir on Linux.
This means I need to change AFLobby but more specifically it means unitsync is no longer in the immediate working directory. Where is libdir? Where do I find it? =s
+- Added player 'CountryCode' tag for the gameSetup script.
Where is this tag intended to go and in what format? UK? United Kingdom? gb? GB? What section does it go in? The ally section? The team section?
+- Added 'lineage' game mode (2). If the commander dies, all units directly or
+ indirectly built by him die, regardless of the current owner of the unit.
How is this referenced in the script? is it an extra value in game mode?

Todo:: Add TASServer and TASClient support. As long as there's no support in those 2 programs none of the other programs are able to support it either.
+- Removed the maximum 8 sides limit.
This isnt a spring bug its a lobby bug todo with the insistence on using bitfields in the lobby protocol. In this protocol the number of bits allocated to side number dictates that there's only room for the numbers from 0-8. Hence why the lobby cant set side n# 10 or above.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

"+- Removed the maximum 8 sides limit."
The lobby may be part of the problem, but it isn't the whole story.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: SVN recent changlelog commit and notes

Post by Tobi »

AF wrote:
Unitsync is now installed to libdir on Linux.
This means I need to change AFLobby but more specifically it means unitsync is no longer in the immediate working directory. Where is libdir? Where do I find it? =s
clarified a bit more in changelog (note though that the changelog is not ment as documentation, it's just ment as a brief listing of all new / modified / fixed things with a short description, that )
+- Added player 'CountryCode' tag for the gameSetup script.
Where is this tag intended to go and in what format? UK? United Kingdom? gb? GB? What section does it go in? The ally section? The team section?
read docs (included in same commit even :-))

And note the word "player" before "'CountryCode' tag" ;-)
+- Added 'lineage' game mode (2). If the commander dies, all units directly or
+ indirectly built by him die, regardless of the current owner of the unit.
How is this referenced in the script? is it an extra value in game mode?
yes
Todo:: Add TASServer and TASClient support. As long as there's no support in those 2 programs none of the other programs are able to support it either.
being worked on, and even then, it is the Spring changelog, not a TASClient or TASServer changelog. (Since they have their own changelog)
+- Removed the maximum 8 sides limit.
This isnt a spring bug its a lobby bug todo with the insistence on using bitfields in the lobby protocol. In this protocol the number of bits allocated to side number dictates that there's only room for the numbers from 0-8. Hence why the lobby cant set side n# 10 or above.
[/quote]
It was a Spring bug too, otherwise I wouldn't have put it in the changelog...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Indeed, thankyou for enlightening me, I'm pleased that you've answered my queries and taken steps to ammend the documentation in recent commits to prevent further confusion ^_^

In the mean time, does libdir happen to be part of an environment variable? It'd be much prefereable to have a dynamic way of determining a direct path to unitsync rather than working on the assumptions, in roder to maximize compatability.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

No, it is a (scons) configure variable: only the build system knows about it. I wouldn't really know a good way to make the location available.

(maybe a spring-config binary that can be run to get various build-time variables including libdir just like many libraries have, but there is no way I can still make & test that before release.)

I'd recommend lobbies to look for it in the two places mentioned in the changelog, and if it can not be found there, ask the user.

This is because the two places should cover all installations through debs and other package systems and all installations through a normal compile & install with the default installation prefix (ie. it should cover 99% of the linux users :-)).

At least unitsync is installed now & shipped with debs etc, which is already a major step forward compared to not installing it at all IMHO.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I have to pass a direct absolute path to unitsync.so If its renamed, moved or capitalization changed in any way the loading process will crash and burn.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

Nothing stops you from checking if the file exists first...
Post Reply

Return to “Engine”