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.


  Show Posts
Pages: 1 2 3 [4] 5 6 ... 19
46  Liberty Unleashed / Liberty Unleashed Chat / Re: Why not make LU open source? on: January 09, 2017, 02:18:25 pm
Welcome to Liberty Unleashed, Eurochron.
Please pay no attention to the rudeness of the guy with the question mark username. He's spawned many servers, but the "success" of them is questionable. Each one has been repeatedly turned off and back on for years. More off than on, too.

I both agree and disagree with the idea of open source for Liberty Unleashed. I think it's a good idea to allow people to provide fixes and features. However, I think we'd have several new half-assed modifications show up claiming they are either LU or better.

Anyway, good luck with your racing server. We used to have one, but it hasn't been online for a while.
47  Liberty Unleashed / Bug Reports / Re: Master list quite unresponsive on: December 22, 2016, 08:09:11 pm
Yeah, I'm having the same issue, Theremin.
48  Off Topic / General Chat / Re: Post your WEI! on: December 20, 2016, 02:24:15 pm
Your avatar is awesome.
I keep watching it over and over for some reason.

Cant .... look .... away
49  Liberty Unleashed / Liberty Unleashed Chat / Re: LU is going to die on: December 19, 2016, 07:50:56 am
I find your lack of faith disturbing ...
50  Off Topic / General Chat / Re: Post your WEI! on: December 18, 2016, 12:34:09 pm
Almost five years later ...
51  Liberty Unleashed / Liberty Unleashed Chat / Re: The end of LU? on: December 14, 2016, 12:53:17 pm
I didn't say the plugin was "no good". I'm sure with a few tweaks, it shouldn't be an issue.
It's missing a proper escape function for strings to prevent injection. It also causes the server to hang when running a few queries.

Both of these could be fixed via scripts. An custom escape function to insert escape characters (i.e. backslash) before certain symbols in a string, then pass the string to a query function.

The server hang could probably be avoided with threads, if done properly. I tested this a few years ago and it worked fine. I've lost the script I was testing, but you could read up on the use of threads in the squirrel manual for more information on how it works. If I remember correctly, you should close the access to the database file when finished, or a separate query running in another thread won't write to the file.

Here, I threw this together in a few minutes. I haven't tested it yet, but try it and see if it works.
Code: [Select]
QueryThread <- newthread( QueryFunction );
function QueryFunction ( szQuery ) {

    local pDatabase = ::sqlite_open ( "database.db" );
    local pQuery = ::sqlite_query ( pDatabase , szQuery );
   
    ::sqlite_free ( pQuery );
    ::sqlite_close( pDatabase );
   
    return;
}

Then, to query the database, use:
Code: [Select]
QueryThread.call ( "SQL QUERY HERE" );Obviously you'll need to replace "SQL QUERY HERE" with your query string.
52  Liberty Unleashed / Liberty Unleashed Chat / Re: The end of LU? on: December 14, 2016, 11:33:21 am
Well, I just put my unfinished RPG script on GitHub for people to freely edit as they please. Haven't gotten too far with it, but it's a good foundation to build more. I use very long variable names, just saying.

It was started in November 2016 by Aeoris and I. He wanted the stuff he added to be removed so despite the fact he contributed it on behalf of the project, I started removing some of it. I guess he's just an asshole or something. Anyway, I haven't fully finished with that yet, but I've uploaded the already so if scripters want to add to the script they can do so the meantime. I only request that you follow the scripting style I have listed in the readme file.

We'll have an amazing RPG script soon :D

https://github.com/VortrexFTW/lu_unitedislandsrpg
53  Servers / Advertise your server! / Re: Worst Server (in LU history) on: December 09, 2016, 05:43:33 pm
Impressive ... Most impressive.

Alphazor, glad you could join us again. I hope the trip to the land of the dead went well. Did you bring back any souvenirs?

I turned 25 the other day, yet it feels like I'm only 25.

:D

Sent from my Nexus 4 using Tapatalk

54  Off Topic / General Chat / Re: LH-MP cancelled [Rant-ish] on: December 09, 2016, 11:06:06 am
Yeah, I'm glad they open sourced it. Maybe somebody can continue it. I checked it out a couple of months ago, but I haven't worked with C++ much and didn't have much time to mess with it.

As for the new developers, when I talked to Romop5 a while back (mentioned earlier in this thread), he said the new developers received a list of functions or something from the original game developers. Maybe this means they won't have to reverse the entire game. It would definitely speed up the development process.
55  Servers / Advertise your server! / Re: Worst Server (in LU history) on: December 09, 2016, 06:45:12 am
I hope you don't see this as an insult since you aim for the worst server, but with the few servers that are online, yours is the best.
56  Liberty Unleashed / Support / Re: How I can create a LU Server? on: December 09, 2016, 06:41:07 am
First, download the server package for your host OS (Windows or Linux) from the main page.

Then, either find a game mode from here on the forums to use, or create one yourself.

You can find released scripts here:
http://forum.liberty-unleashed.co.uk/index.php/board,19.0.html

Plenty of information on the scripting functions and events available can be found on the wiki:
http://liberty-unleashed.co.uk/LUWiki/Main_Page
57  Scripting / Script Help / Re: Need help checking time on: December 07, 2016, 12:16:37 pm
Well, even with cheap hosting you can get good specs so avoiding
a timer to save resources doesn't even seem reasonable any more

Sent from my Nexus 4 using Tapatalk

58  Scripting / Script Help / Re: Need help checking time on: December 05, 2016, 08:16:22 am
Even for all this, I would prefer a timer. 5 minutes doesn't really have a significantly heavy resource usage. I think a 300,000 millisecond interval is 5 minutes.
59  Scripting / Script Help / Re: Need help checking time on: December 03, 2016, 02:49:50 am
That does t make any sense. Did you read my post? What we know as seconds in life are actually minutes in game

Sent from my Nexus 4 using Tapatalk

60  Scripting / Script Help / Re: Need help checking time on: December 03, 2016, 02:39:00 am
Uhhhhh ...

I don't think onTimeChange measures seconds. It's only hours and minutes.

By default, the game clock increments a minute of in-game time for every second of real time. Every 60 seconds is one hour in-game, which means that 24 minutes is 24 hours in-game.

Pages: 1 2 3 [4] 5 6 ... 19
© Liberty Unleashed Team.