project-navigation
Personal tools

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DonQuijote

Pages: [1]
1
Mac / Re: OSX installers
« on: August 03, 2014, 12:02:23 pm »
Here's a recent build (based on source code as of August 3rd, 2014) : https://mega.co.nz/#!UtwmlSRD!Zq26H4KkbdcEm22JA5PAuROKOUY0GAnBxU8GAZW32nc

To devs: I'd happily build a release based on 2.5 branch, but I have no idea how can I fetch it from Github. If I can get help on this, I'll try to build and upload the stable branch too.

2
Mac / Re: OSX installers
« on: June 04, 2014, 05:54:12 am »
Is this build meant to be compatible with OSX 10.8.5? It crashes on launch for me.
It should be. I'm running 10.9.3 though, so I can't test.

3
Mac / Re: OSX installers
« on: June 03, 2014, 08:00:06 am »
I've uploaded it for anyone to grab, so if someone can mirror it, would be great.

ufoai-2.6-dev-macosx-universal

4
Mac / Re: OSX installers
« on: June 01, 2014, 08:46:13 pm »
oh yes - please submit patches. they are more than welcome. if you could upload the dmg somewhere, please let me know, then we will be able to mirror it.

Code: [Select]
diff --git a/src/client/cl_http.cpp b/src/client/cl_http.cpp
index 8767675..eb4cc67 100644
--- a/src/client/cl_http.cpp
+++ b/src/client/cl_http.cpp
@@ -189,7 +189,7 @@ static void CL_StartHTTPDownload (dlqueue_t* entry, dlhandle_t* dl)
        curl_easy_setopt(dl->curl, CURLOPT_NOPROGRESS, 0);
        if (dl->file) {
                curl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl->file);
-               curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, nullptr);
+               curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
        } else {
                curl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl);
                curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
diff --git a/src/common/http.cpp b/src/common/http.cpp
index 7c54d5a..912e389 100644
--- a/src/common/http.cpp
+++ b/src/common/http.cpp
@@ -184,7 +184,7 @@ static bool HTTP_GetURLInternal (dlhandle_t& dl, const char* url, FILE* file, co
        curl_easy_setopt(dl.curl, CURLOPT_FAILONERROR, 1);
        if (file) {
                curl_easy_setopt(dl.curl, CURLOPT_WRITEDATA, file);
-               curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, nullptr);
+               curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
        } else {
                curl_easy_setopt(dl.curl, CURLOPT_WRITEDATA, &dl);
                curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
diff --git a/src/game/g_ai.cpp b/src/game/g_ai.cpp
index abd9d89..bc4bb79 100644
--- a/src/game/g_ai.cpp
+++ b/src/game/g_ai.cpp
@@ -1164,8 +1164,8 @@ static bool AI_FindMissionLocation (Actor* actor, const pos3_t to)
                        if (!AI_CheckPosition(actor))
                                continue;

-                       const int distX = std::abs(actor->pos[0] - to[0]);
-                       const int distY = std::abs(actor->pos[1] - to[1]);
+                       const int distX = abs(actor->pos[0] - to[0]);
+                       const int distY = abs(actor->pos[1] - to[1]);
                        const int dist = distX + distY + std::max(distX, distY);
                        if (dist < bestDist) {
                                bestDist = dist;

Maybe some of them aren't correct, but it did compile and it seems to be working fine for now. I can upload it on MEGA and send you the link, if it's ok.

The hard part was to get all the needed libraries installed. As much as I tried with MacPorts I couldn't make it work, it was alwasy failing linking lua libraries at some point in the build. It finally worked with fink, after clearing everything installed with port, but there are a some missing dependencies in the wiki. I remember I also needed to install, on top of those listed, libvorbis0, libogg and gettext-tools. Maybe some other too, not so sure now.

5
Mac / Re: OSX installers
« on: June 01, 2014, 06:07:01 pm »
Took me a whole day to compile it, but it seems I have a working 2.6dev build. I can upload it somewhere if needed. Also, I might be able to remember the code changes (a few, not so many) I had to do so this build will compile.

Pages: [1]