Upspring 1.54 - Page 22

Upspring 1.54

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
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Upspring 1.54

Post by Argh »

Yay, this makes life much easier.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Re: Upspring 1.54

Post by jcnossen »

The exported BOS values seem very small, it seems that because of the rotation changes it's not calling "function OutputRotationAnim(propInfo,f)" for rotations but also "OutputVector3Anim(propInfo,f)", this will require another bit of fixing in the lua script...
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Upspring 1.54

Post by rattle »

Things I'd like to see in the future:
- mass import
- automatic naming of pieces on (mass) import (filename minus extension)
- make save dialogue append extension properly
- no quitting on escape (there's like one or two dialogues where it still happens)
- correct normal scaling when resizing
Image
Caradhras
Posts: 381
Joined: 31 Jul 2006, 21:49

Re: Upspring 1.54

Post by Caradhras »

is this abandoned?

Is it still in use?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Upspring 1.54

Post by Tobi »

yes & yes, as far as I know.
Caradhras
Posts: 381
Joined: 31 Jul 2006, 21:49

Re: Upspring 1.54

Post by Caradhras »

Is anyone willing to rewrite this program as cross-platform in c++?
I want to contribute, but im still a beginner in terms of c++, but i want to learn!

I have machines with ubuntu 64bit, 32 bit and 32bit WinXP for testing available and greater amounts of time.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Upspring 1.54

Post by hoijui »

you should try it yourself!
there is always help around, if you need it, either here in the forum or on the lobby server, or the internet as a whole.
Is Upspring in C++ already? if so, you can just try to compile it wiht the different compilers on the different systems, and then try to eliminate the compile errors and warnings.
I don´t think that there is a better way of leanrning C++ -> the main part of this, is learning the special things, eg. what things are not supported by all compilers. You could read about this, or beeing told by someone that knows all this already, but you could not remember it anyway, as it is just too detailed info, not in a format easyly remembered by just hearing or reading it. of course ti will take you longer to port the app, then it would take a C++ expert, but.. thats just how you learn this stuff.. in my experience ;-)
Caradhras
Posts: 381
Joined: 31 Jul 2006, 21:49

Re: Upspring 1.54

Post by Caradhras »

Where can i find source or anything? I just found compiled exes...
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Upspring 1.54

Post by Tobi »

Source: https://spring.clan-sy.com/svn/spring/t ... /Upspring/
Patch to make it compile on Linux: http://spring.clan-sy.com/mantis/view.php?id=516

(It's written in C++, using FLTK toolkit.)
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Re: Upspring 1.54

Post by jcnossen »

Is that up-to-date? The source is also avaiable in the NSIS installer, but you'll have to install that on windows (or wine).
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Upspring 1.54

Post by Kloot »

AFAIK the SVN source is of 1.54 pre-conversion to Euler angles, and my patch was based on that revision as well. I don't think there were any other changes between April 2007 and May 2008 (the SVN log seems to agree).

PS. I wouldn't mind bringing the patch up to date again or doing some general work on UpSpring if it is indeed "abandonware".
Caradhras
Posts: 381
Joined: 31 Jul 2006, 21:49

Re: Upspring 1.54

Post by Caradhras »

Tobi, if i click on your link to the upspring source, i get a bad ssl certificate error form firefox.

Well, i would very welcome a native version, because i do not like wine and all these "hacks". I ll keep trying...
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Upspring 1.54

Post by Tobi »

jcnossen wrote:Is that up-to-date?
Heh, shouldn't you know that? :-)

Either way, I've no clue..

Do you still plan to work on it sometime, ever, or is it really abandoned?
Caradhras wrote:Tobi, if i click on your link to the upspring source, i get a bad ssl certificate error form firefox.
Just add exception... HTTPS with unverified certificate is still safer then plain HTTP, about which firefox doesn't complain :? ...

Or just check it out with you SVN client.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Re: Upspring 1.54

Post by jcnossen »

Kloot wrote:AFAIK the SVN source is of 1.54 pre-conversion to Euler angles, and my patch was based on that revision as well. I don't think there were any other changes between April 2007 and May 2008 (the SVN log seems to agree).

PS. I wouldn't mind bringing the patch up to date again or doing some general work on UpSpring if it is indeed "abandonware".
Yes, you can consider it abandonware.
The euler angle release was the last public one, and then I did just one more local commit to fix image file locking. 2 lines, probably easier to just add by hand.

The euler angle release also has your patch in it, and a fixed BOSExporter.lua by rattle, so it's probably easier to start from there.

Code: Select all

Index: G:/MyProjects/mysvn/upspring/src/upspring/Image.cpp
===================================================================
--- upspring/src/upspring/Image.cpp	(revision 170)
+++ upspring/src/upspring/Image.cpp	(revision 171)
@@ -435,9 +435,11 @@
 		LoadFromMemory(buf, len);
 	} catch(const content_error& e) {
 		delete[] buf;
+		fclose(f);
 		throw content_error(SPrintf("Error loading image %s: %s", file, e.what()));
 	}
 	delete[] buf;
+	fclose(f);
 }
 
 Image* Image::Clone()
Caradhras
Posts: 381
Joined: 31 Jul 2006, 21:49

Re: Upspring 1.54

Post by Caradhras »

The link to the source is obviously not the Euler version, right?

But im to stupid to apply the linux patch, I tried it with the unix program "patch" but it always spits errors like this in my face:

Code: Select all

can't find file to patch at input line 486
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Index: /home/mypath/Code/UpSpring/src/upspring/FileIO/
|===================================================================
|--- S3O.cpp	(revision 3585)
|+++ S3O.cpp	(working copy)
--------------------------
I fiddled around with the path, but from this point it still refuses to move on.

:|
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Upspring 1.54

Post by hoijui »

Caradhras, as i got it, Kloot will work on it (correct me if i am wrong), so you may wait for him to setup a new repository.
Caradhras
Posts: 381
Joined: 31 Jul 2006, 21:49

Re: Upspring 1.54

Post by Caradhras »

ah ok, that might be even better.

Kloot, if you have anything I can help you with, send me a pm. I will hang around in #sy.
Post Reply

Return to “Engine”