Commit graph

17 commits

Author SHA1 Message Date
RHY3756547
2bb7cfcfa2 [Server] Rehaul roommate protocol, avatar retire
You MUST run server.exe db-init after this version.
- Re-enabled and fixed returning non-roommate objects to their
inventories
- Implemented opening a property just to cycle database actions, eg.
roommate object sendback.
- Implemented Sim Retire. Even works when a lot is open - all of the
objects for the removed avatar will be deleted from the lot, just as if
they moved out.
- Implemented lot deletion. When the last avatar leaves a lot, its owner
becomes null. The next time this lot opens, it is deleted from db and
nfs. (opens instantly to close, though a purge task will be implemented
in the future to do this when some lots are missed)
- You can no longer buy a lot when you are the owner of a lot. You must
first move out of your existing lot.
- Lot move out has centralised functionality to stop weird data service
bugs.
- Center sim now considers terrain height
- Quitting to Select-A-Sim now attempts to re-obtain avatar data. If it
fails, you are sent back to the login screen.
2017-07-20 22:26:50 +01:00
RHY3756547
b698c5a4b2 [VM, Server] Minor Changes
- Fix objects being on sale after you buy them
- Object deletion is now deferred til after tick execution (fixes some
object crashes)
- Floor pattern 1 no longer sells for greater than 0
- Minor change to db structure. Make sure you run "server.exe db-init"
on servers.
2017-03-29 04:19:27 +01:00
ddfczm
a33ddcea25 InitialServletConnect 2017-01-07 12:51:38 +00:00
RHY3756547
1d9677cc80 [City] More work on crucial features 2017-01-05 16:36:53 +00:00
ddfczm
51804bc473 Property + visitor bonus backend implemented. If a bonus has already been paid for the period running the job again will not give the avatar more funds. 2016-12-29 16:36:54 +00:00
ddfczm
37ceca7458 Typo, off by 1 2016-12-29 14:45:19 +00:00
ddfczm
1db6fb5c7a Refactor of top 100 calculation to rely more on SQL. The top 100 task now processes one day at a time (reducing RAM burden) and writes total hours for the day into a totals table. A stored procedure is then called to calculate the top 100 tables based on this data.
This commit also has some WIP for bonus payments.
2016-12-29 14:38:12 +00:00
ddfczm
b2bbaa8288 Added db tables to store hosts and tasks.
* Hosts keep track of the servers in the pool. Each server and its role is recorded. This helps with service discovery.
* Tasks are async events that have run such as database pruning or top100 calculation. This helps admins know if a task completed or not.
2016-12-26 18:42:48 +00:00
ddfczm
a9c2be2322 Top 100 lot tables + calculations. Basic task schedule engine to automatically run the job every day.
TODO:
* Need to add some way to recover when the server is off when the task should run.
2016-12-24 18:50:11 +00:00
ddfczm
9bc2368be6 Record lot visits 2016-12-23 22:01:51 +00:00
ddfczm
15e909045e Removed the table name from the lotadmit change script as table name is not required to always be fso. 2016-11-29 14:49:39 +00:00
ddfczm
ca63c3d520 Merge remote-tracking branch 'upstream/feature/server-rebuild' into feature/display-racks
Conflicts:
	TSOClient/FSO.Server.Database/DA/SqlDA.cs
	TSOClient/FSO.Server.Database/FSO.Server.Database.csproj
	TSOClient/tso.client/UI/Panels/UILiveMode.cs
	TSOClient/tso.client/packages.config
	TSOClient/tso.simantics/FSO.SimAntics.csproj
	TSOClient/tso.simantics/Marshals/VMMarshal.cs
	TSOClient/tso.simantics/NetPlay/Model/VMNetCommand.cs
	TSOClient/tso.simantics/entities/VMAvatar.cs
2016-11-29 14:43:59 +00:00
ddfczm
f858e30fa0 Dressers now let you change into clothes you own. Have added a migration so everyones current clothes will be added to the database. 2016-11-27 16:12:47 +00:00
ddfczm
578a6bd6ed Manage interaction on store clothing racks fully working. 2016-11-20 13:30:31 +00:00
RHY3756547
a80ab60b93 [City, VM] Implement Lot admit/deny. Small changes. 2016-11-17 19:10:55 +00:00
ddfczm
ab09dafe0c Added backend for bookmarks. This is Maxis protocol compatible and the original game works with this bookmark implementation. However, the maxis protocol way of doing this is really messy. We may wish to change it to a FreeSO protocol specific way in the future if we experience any problems. 2016-11-11 20:28:01 +00:00
ddfczm
0679ef3873 Added migrations for triggers. Also added better error reporting in the migration tool and fixed a column mismatch in the user schema. 2016-11-11 17:03:21 +00:00