Ørb# (Orb Sharp) Development Log

YSFlight addon development, questions, tutorials, & more!
User avatar
Eric
Senior Veteran
Senior Veteran
Posts: 1533
Joined: Thu Feb 10, 2011 5:30 am
Favorite Aircraft: Super Hornet
Location: Chicago, Illinois
Has thanked: 59 times
Been thanked: 164 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Eric » Wed Aug 21, 2013 5:39 am

I understand. Multithreading can get messy.

Also, I was wondering if Orb has been tested on any non-Windows platform. I know that you may get a port-in-use error if you try to run the YS server and then try to restart it (with connected clients), on Ubuntu anyway.
I make this website.

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Wed Aug 21, 2013 6:19 am

Only windows. I may compile for linux/osx using other compiling tools, but support will be very limited.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Midnight Rambler
Staff
Staff
Posts: 2120
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 10
Has thanked: 259 times
Been thanked: 360 times

Re: Ørb# (Orb Sharp) Development Log

Post by Midnight Rambler » Wed Aug 21, 2013 8:20 am

OfficerFlake wrote:Only windows. I may compile for linux/osx using other compiling tools, but support will be very limited.
So. Will it work on a VPS? I'm running Windows 2012.
Image

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Wed Aug 21, 2013 10:25 am

should do.

I assume Win 2012 has .net?
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Thu Aug 22, 2013 12:35 am

Changes to the YSFHQ Authentication module to help people with connection problems. (More feedback).
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Thu Aug 22, 2013 12:39 am

Changed the compilation mode to Any CPU - so now x64 and x86.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Thu Aug 22, 2013 3:46 am

Can now add and remove ranks from a group on the fly.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Thu Aug 22, 2013 4:32 am

OfficerFlake wrote:Next commands will be add/remove groups from the console. Change group founders from the console (group founders have absolute power over a group), and then add and remove ranks to the group, and re-order ranks as needed.
All done and tested.

Now it's time to start coding info reports for groups, users and ranks.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Thu Aug 22, 2013 7:15 am

Image

About on equal footing, maybe a bit beyond, what python based orb could do in every regard now.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Thu Aug 22, 2013 7:48 am

Private messaging now enabled:

@@<groupname> message, @@<groupname>,<groupname2>... message
@<member> message, @<member>,<member2>... message
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Thu Aug 22, 2013 8:00 am

The next few steps are going to get a little difficult:

I'll be adding /ban, /kick/ mute etc, and then adding permissions management on-the-fly to the server as well.

Then we'll kick into alpha release.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Fri Aug 23, 2013 10:27 am

OfficerFlake wrote:I'm thinking I need to convert the YSPS Script to python. It's not low level, but the lag isn't very noticable

For now, I've made a simple call and response client that listens to the server for commands

Later, I will make that script work as a proxy instead, then work on having commands implementable. :D

Here's a simple demo. If it doesn't understand, it just says "WAT". If you get a "/nvm" then is says "coolstorybro" and "/exit" causes the loop to end and the client to DC.

Image
Blast from the past? This was Feburary 07, 2012.

That's when it all started. A year and a half ago.

Now look where we are.

Learn to code kiddies. The change you can bring to just about anything is insane.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Tue Aug 27, 2013 1:03 am

Restructured scrolltocarat and consolerefresh into the thread lock. Should be safe now I hope.

Added an exception catch for when a public ip lookup fails (applicable only to local hosts).

Now logging chat messages (no group messages or private messages etc. are logged.)

now hiding console when servergui mode is on.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Wed Aug 28, 2013 12:29 am

OfficerFlake wrote:Time to check if the username thing we discussed is happening! :D
Support for usernames of any length added, without assuming anything.

Orb is now intended to be used ONLY by the latest stable build and up.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Mon Sep 02, 2013 10:02 am

users can now be banned both permanently and temporarily.

unbanning of users to come.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Tue Sep 03, 2013 12:03 am

Banning/UnBanning fully implemented.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Tue Sep 03, 2013 1:21 am

Mute/Unmute fully implemented.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Tue Sep 03, 2013 3:08 am

Kick Implemented.

Released Orb Pre-Alpha 1.0 - 03Sep13 to the test team. (Orb Enthusiasts Group).

LET ME KNOW OF ANY ISSUES! :D
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Sat Sep 07, 2013 8:04 am

I'm working on the YSFHQ Authentication module.

Will now work like so:

User logs in with YSFHQ Username. If a matching name isn't found, user is denied.

IF a match IS found, IP records are checked. if matching, user is authorised.

If NOT matching, user has the option to enter a password to override the authentication. This can be set per user by that user. if a user decides that don't want a password, anyone can log on as that user.

Passwords are stored in the user database, hashed with MD5 and a custom generated SALT for each PC, stored in a DLL generated on the fly for security. The console owner doesn't even know what the SALT is...

Even if they DID, it's be damned hard for them to crack it because it is MD5 anyway...

Hopefully this new system will be welcomed by all.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: Ørb# (Orb Sharp) Development Log

Post by Flake » Sat Sep 07, 2013 12:06 pm

Using a autoresetevent list for input waiting threads.

Pretty much, some actions require the user to type something in. Such as passwords, etc.

In the past, I was using a "get one packet" to repeatedly grab YSFlight packets, tossing the spares and waiting until I got type 32.

This is obviously dangerous as it means two threads are operating on the socket receive thread, and that can royally stuff EVERYTHING for that client.

I've instead coded a "input result" for chat messages, and input waiter list.

when sending a standard chat message, the server checks to see if there are any threads expecting input. It updates the input field, and tells all those threads that the data has been received, and removes them from the list.

Sounds a bit complicated, IS complicated, but tested robustly and it works, much MUCH better.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests