XL Engine source code release!

Not about OpenMW? Just about Morrowind in general? Have some random babble? Kindly direct it here.
User avatar
Zini
Posts: 5536
Joined: 06 Aug 2011, 15:16

Re: XL Engine source code release!

Post by Zini » 06 Apr 2018, 10:36

That exception is the result of using new[] with a funky array size. Unfortunately there is a lot of macro stuff in there which makes debugging harder, but the Open function has several new statements. I would check which of them is used with an weird size (either via debugger or by couting the value).

User avatar
psi29a
Posts: 4677
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: XL Engine source code release!

Post by psi29a » 07 Apr 2018, 00:37

I think we've made some major progress... :)

Chris
Posts: 1561
Joined: 04 Sep 2011, 08:33

Re: XL Engine source code release!

Post by Chris » 07 Apr 2018, 04:11

psi29a wrote:
07 Apr 2018, 00:37
I think we've made some major progress... :)
Indeed.
screenshot.png

User avatar
raevol
Posts: 3040
Joined: 07 Aug 2011, 01:12
Location: Caldera

Re: XL Engine source code release!

Post by raevol » 07 Apr 2018, 05:51

Wow nice!!!

User avatar
drummyfish
Posts: 154
Joined: 22 Oct 2017, 10:13
Contact:

Re: XL Engine source code release!

Post by drummyfish » 07 Apr 2018, 12:38

OMG it's beautiful.

magamo
Posts: 106
Joined: 28 May 2016, 17:28

Re: XL Engine source code release!

Post by magamo » 07 Apr 2018, 15:58

I'm unfortunately unable to get this to compile. I installed the libdevil-dev and libdevil1c2 packages into my Ubuntu 16.04 development environment. Is 16.04's version of GCC just not new enough at this point for the current codebase?

EDIT: It would appear so -- If I initialize an ubuntu 18.04 development environment, XLEngine compiles cleanly.

User avatar
psi29a
Posts: 4677
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: XL Engine source code release!

Post by psi29a » 07 Apr 2018, 17:32

What does it complain with?

We are using plain old C++ at this point, even new and delete... no smart pointers. Nothing special.

magamo
Posts: 106
Joined: 28 May 2016, 17:28

Re: XL Engine source code release!

Post by magamo » 07 Apr 2018, 19:46

stderr stream attached.
Attachments
xlengine-error.txt
My stderr from an unsuccessful compile attempt on ubuntu 16.04
(1.68 KiB) Downloaded 37 times

User avatar
psi29a
Posts: 4677
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: XL Engine source code release!

Post by psi29a » 07 Apr 2018, 20:03

what's your gcc version?
That's should be available in C++11, maybe we need to set that in cmake?

User avatar
afritz1
Posts: 45
Joined: 05 Sep 2016, 01:18
Contact:

Re: XL Engine source code release!

Post by afritz1 » 07 Apr 2018, 20:05

Seems it is already using C++11 features as part of the fixing-up process (std::string::back(), std::string::pop_back(), std::stoi()), so just pass -std=c++11 and it should compile. Alternatively those pieces of code could be replaced with older features, but ultimately I think the project is going to be using C++11 anyway.

Post Reply