The differences between Develop and Maintenance

The differences between Develop and Maintenance

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
Forboding Angel
Evolution RTS Developer
Posts: 14588
Joined: 17 Nov 2005, 02:43

The differences between Develop and Maintenance

Post by Forboding Angel » 23 May 2018, 06:28

Ok, so evo uses 104.0. This version has a few minor things that make me want to move to a newer engine version. The issue is that SWL does not recognize maintenance version (Yes, I can trick it into thinking that m version is a d version (the same way I tricked spads before spads supported it) but I'd like to avoid that).

Here is my question... Is there any real reason why I couldn't use a legit develop version? Some of the things we need include gameid on game load for purposes of randomseed, and the fact that maxslope is ignored for placing mobile units being built on the battlefield in 104.0.

That said, from what I understood was that 104.0 and develop run a higher version of ogl than maintenance. Since evo is already just fine with 104.0 is there any reason it should have issues with the develop versions (yes I know about the luamex bug)?
0 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: The differences between Develop and Maintenance

Post by gajop » 23 May 2018, 11:49

Develop is probably completely unusable for all projects. Too many GL functions are made obsolete, probably no UI will render.
Use maintenance.
1 x

User avatar
AF
AI Developer
Posts: 20669
Joined: 14 Sep 2004, 11:32

Re: The differences between Develop and Maintenance

Post by AF » 23 May 2018, 13:48

Though I imagine if you can get your UI working in develop the new code would work in 103 too, futureproofing!
0 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: The differences between Develop and Maintenance

Post by gajop » 23 May 2018, 15:01

I doubt that. This will break backwards compatibility. Honestly right now I'm not sure you can replicate everything - may need to wait for new functionality to get exposed.
0 x

Kloot
Spring Developer
Posts: 1865
Joined: 08 Oct 2006, 16:58

Re: The differences between Develop and Maintenance

Post by Kloot » 23 May 2018, 15:21

probably completely unusable
For most UI code, removal of display lists has been the only major API breakage to occur so far and is easy to adapt to.

That said, sticking with maintenance is a wiser course of action for the time being.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14588
Joined: 17 Nov 2005, 02:43

Re: The differences between Develop and Maintenance

Post by Forboding Angel » 24 May 2018, 05:49

Ok, will do. Thanks for the info guys :-) <3
0 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: The differences between Develop and Maintenance

Post by gajop » 24 May 2018, 17:55

Kloot wrote:
probably completely unusable
For most UI code, removal of display lists has been the only major API breakage to occur so far and is easy to adapt to.

That said, sticking with maintenance is a wiser course of action for the time being.
Did this serve as a reminder to murder gl.MultiTexCoord?

Code: Select all

➜  chiliui git:(master)  grep -rni gl.MultiTexCoord | wc -l
96
PS: I tried to give it a go, but I can't even run the self-compiled develop for some reasons: https://pastebin.com/hJbsEzxQ
PS2: There are also issues with using prebuilt executables as Ubuntu 18.04 is now on libcurl4 and static-linked Spring we host requires libcurl3. Cannot force install libcurl3 as it conflicts with libcurl4 which a lot of packages seem to depend on (including cmake).
0 x

Kloot
Spring Developer
Posts: 1865
Joined: 08 Oct 2006, 16:58

Re: The differences between Develop and Maintenance

Post by Kloot » 24 May 2018, 19:12

I expect/hope most of those are uniforms in disguise.

re: PS: upgrade to GLEW 2.1.0 (or hack away the version check)
re: PS2: pr-downloader's fault, it doesn't respect PREFER_STATIC_LIBS
1 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: The differences between Develop and Maintenance

Post by gajop » 25 May 2018, 00:25

Kloot wrote:I expect/hope most of those are uniforms in disguise.

re: PS: upgrade to GLEW 2.1.0 (or hack away the version check)
re: PS2: pr-downloader's fault, it doesn't respect PREFER_STATIC_LIBS
Ok following these suggestions (hacking away GLEW) I did manage to get in a game, and using FLOZI's ABC's A game, this is how stuff looks like to me: https://i.imgur.com/9m3ILiB.jpg . How do I fix map rendering? Although nothing useful in it, this is the infolog.

PS2: I think we need to fix this - as there will be many Ubuntu 18.04 users of regular Spring (and not just Steam). I'll take a look if I can.
0 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: The differences between Develop and Maintenance

Post by gajop » 25 May 2018, 01:02

There is this block though:

Code: Select all

if (PREFER_STATIC_LIBS)
	#curl dependency
	FIND_PACKAGE_STATIC(OpenSSL REQUIRED)
	FIND_PACKAGE_STATIC(CURL REQUIRED)
	FIND_PACKAGE_STATIC(ZLIB REQUIRED)
else()
	find_package(CURL REQUIRED)
	find_package(ZLIB REQUIRED)
endif()
Why doesn't it work?
0 x

Kloot
Spring Developer
Posts: 1865
Joined: 08 Oct 2006, 16:58

Re: The differences between Develop and Maintenance

Post by Kloot » 25 May 2018, 01:15

this is how stuff looks like to me: https://i.imgur.com/9m3ILiB.jpg
I'm going to guess your SpringData dir points to the wrong basecontent sdz's (only way I can replicate your screenshot), although that should lead to all sorts of errors. Add DebugGL=1 and DebugGLStacktraces=1 to springsettings.cfg for more details.

Why doesn't it work?
Not sure, https://github.com/spring/spring/blob/d ... ts.txt#L10 has something to do with it.
1 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: The differences between Develop and Maintenance

Post by gajop » 25 May 2018, 17:16

I've attached the infolog, it's pretty large, but I think the first couple of lines are useful, posted below:

Code: Select all

[f=-000001] Warning: [OPENGL_DEBUG] id=131216 source=API type=OTHER severity=LOW msg="Program/shader state info: Assembly program 109 failed to compile at position 2247.  The associated error string is:  line 64, column 9:  error: invalid parameter array size
line 70, column 41:  error: out of bounds array access
line 71, column 38:  error: out of bounds array access
line 72, column 16:  error: out of bounds array access
line 74, column 16:  error: out of bounds array access
line 76, column 17:  error: out of bounds array access
line 78, column 16:  error: out of bounds array access
line 84, column 38:  error: out of bounds array access
line 85, column 41:  error: out of bounds array access
line 86, column 16:  error: out of bounds array access
line 88, column 16:  error: out of bounds array access
line 98, column 16:  error: out of bounds array access
line 131, column 16:  error: out of bounds array access
line 143, column 23:  error: out of bounds array access
line 145, column 21:  error: out of bounds array access
line 148, column 16:  error: out of bounds array access
line 150, column 20:"
Attachments
infolog.txt
(661.63 KiB) Downloaded 1 time
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6107
Joined: 29 Apr 2005, 01:14

Re: The differences between Develop and Maintenance

Post by FLOZi » 26 May 2018, 00:12

Any chance of a 'useful guide for GL idiots' about what changes we'll have to make in the long term?
0 x

hokomoko
Spring Developer
Posts: 581
Joined: 02 Jun 2014, 00:46

Re: The differences between Develop and Maintenance

Post by hokomoko » 26 May 2018, 09:35

FLOZi wrote:Any chance of a 'useful guide for GL idiots' about what changes we'll have to make in the long term?
This will happen, but not before there's a usable interface.

In general, Most if not all of GL code will have to be updated, with the vast majority being straightforward and barely requiring knowledge.
lups, Chili CUS will need more TLC, I suspect I'll help there.
1 x

Post Reply

Return to “Engine”

cron