188 Commits

Author SHA1 Message Date
8abf75a3e9 initial implementation (wojs)
-added CurrentZone property to Viking model
-implemented ``InviteBuddy`` and ``GetBuddyLocation``
2025-03-18 15:45:52 -07:00
6fab853d5f implement realtime communication with mmo server
-also added messages for anyone on wojs or earlier for ribbons
-mmo communication occurs in the ``MessagingService`` and ``BuddyService``
-for now this requires a DLL from the game client as we should not distribute the SmartFox client openly here due to it being closed sourced
2025-03-17 14:05:43 -07:00
0a97ff8d42 take url inputs on `GetUserAndVikingCount` 2025-03-14 17:24:52 -07:00
e8e1369012 better log formatting 2025-03-14 17:04:33 -07:00
94ede223f3 add basic evnet logging and remove ambiguous ping controller 2025-03-14 16:58:46 -07:00
d3b7270dcd add stats endpoint 2025-03-14 16:20:13 -07:00
3a58938f59 json 2025-03-14 14:09:21 -07:00
5ea9b5db3b ping bug fix 2025-03-14 14:08:12 -07:00
03a16df394 add ping endpoint for status service 2025-03-14 14:03:20 -07:00
2f99a2a1ab quick fix for math blaster (use utc birthdate) 2025-03-13 15:28:55 -07:00
f44f80ec38 use different key format in `GetRules` if client version is one of the wojs lands 2025-03-13 11:41:37 -07:00
3cde6f07ae revert rank up message due to buggy achievement store 2025-03-11 22:24:45 -07:00
feb0291dc6 bugfixes
- wojs sucks
2025-03-11 22:16:56 -07:00
3762b23a42 sod fix
i just now got sod working locally
2025-03-11 21:04:25 -07:00
69a2e33ee6 initial work
- add message to viking if level up is detected and wojs is game version
- crappy fix for bug where viking rank isn't displayed correctly in some areas
- add empty url's for audio and image (otherwise cutscene would not play)
2025-03-11 18:01:08 -07:00
e10f80580a implement `BlockBuddy`
messaging bug fix
2025-03-11 14:36:16 -07:00
226e524f37 merge upstream 2025-03-09 15:14:57 -07:00
Robert Paciorek
db795d93a4 bugfixes
- allow to add items to store while using replace action in server-side mods
- fixed wrong (inverted) logic for LastLevelCompleted
- fixed 'already an open DataReader' isse on GetTopRated* endpoints
- disabled AchievementTaskID 37 (WoJS) due to causing bug
2025-03-09 08:27:49 +00:00
e0c1d2cab2 precense fixes 2025-03-07 18:13:17 -08:00
ded2acc5ca implement precense endpoint 2025-03-07 17:42:44 -08:00
44aa98ef3a implement buddy codes 2025-03-07 17:20:27 -08:00
b7b99cd353 add `IsPrivate field to Message` 2025-03-06 11:33:08 -08:00
6deebb947b implement `UpdateBestBuddy` 2025-03-06 10:52:16 -08:00
5bd62186f0 implement `RemoveBuddy`
modify ``SendMessage``
add message of typeid 21 when reply is made
reworks some things in ``BuddyService``
2025-03-03 17:00:58 -08:00
684e8691d8 implement `AddBuddy and ApproveBuddy` 2025-03-03 13:39:56 -08:00
21b7cd9694 initial data model work 2025-03-03 12:35:08 -08:00
157f8fc455 implement endpoints in `MessagingController` 2025-03-02 18:52:22 -08:00
ff4e8c39cd change to `HttpPost` 2025-02-27 18:01:54 -08:00
df4c7e4017 introduce `Internal` namespace
implement ``ModerationController``
2025-02-27 14:50:46 -08:00
YoshiCraft64
cecaa50610
support for old ("steps") missions (#20)
* add support for old missions API (aka "steps missions")
* config option to disable loading non SoD Data (used only for missions and achievements for now)
* make AuthenticateUser endpoint compatible with games that use e-mail as login
* add api keys for lands
* add GetGameCurrency endpoint
* allow create empty stores and add store "8" (empty)

---------

Co-authored-by: Robert Paciorek <robert@opcode.eu.org>
2025-02-13 22:58:19 +01:00
Robert Paciorek
13df822608 rework achievements system + minor cleanup
rework achievements system:
    - support for Achievements page in journal
    - register achievement tasks in database to avoid duplicate rewards and to register progress (achievement levels)
    - better achievement tasks xml database (for multiple games)
    - support for older games SetUserAchievementTask (V1)
    - add some missed achievement IDs
    - move achievement data to Resources/achievements/

additionally:
    - add mmo zones for MaM and some additional mmo zones for EMD
    - move missions Resources into Resources/missions/
    - split SoD/MaM missions into separte files
    - move rank data to Resources/ranks/
    - cleanup sodoff.csproj

SQLite database schema changes:

```
CREATE TABLE "AchievementTaskState" (
	"VikingId"	INTEGER NOT NULL,
	"TaskId"	INTEGER NOT NULL,
	"Points"	INTEGER NOT NULL,
	CONSTRAINT "PK_AchievementTaskState" PRIMARY KEY("TaskId","VikingId"),
	CONSTRAINT "FK_AchievementTaskState_Vikings_VikingId" FOREIGN KEY("VikingId") REFERENCES "Vikings"("Id") ON DELETE CASCADE
);
```
2025-02-08 10:29:56 +00:00
Hipposgrumm
24695583b3
Rating for Pods, Games, and (probably) other stuff (#16)
Implements the rating system.

Shipwreck Lagoon tracks theoretically work, but there's currently no way of testing them.
There is a hack to make the ranked pods section of the blaster party board work. Don't know if that'll cause any issues (but I don't think so).

SQLite database schema changes:

```sql
CREATE TABLE "RatingRanks" (
	"Id"	INTEGER NOT NULL,
	"CategoryID"	INTEGER NOT NULL,
	"RatedEntityID"	INTEGER,
	"RatedUserID"	TEXT,
	"Rank"	INTEGER NOT NULL,
	"RatingAverage"	REAL NOT NULL,
	"UpdateDate"	TEXT NOT NULL,
	CONSTRAINT "PK_RatingRanks" PRIMARY KEY("Id" AUTOINCREMENT)
);
CREATE TABLE "Ratings" (
	"Id"	INTEGER NOT NULL,
	"VikingId"	INTEGER NOT NULL,
	"RankId"	INTEGER NOT NULL,
	"Value"	INTEGER NOT NULL,
	"Date"	TEXT NOT NULL,
	CONSTRAINT "FK_Ratings_RatingRanks_RankId" FOREIGN KEY("RankId") REFERENCES "RatingRanks"("Id") ON DELETE CASCADE,
	CONSTRAINT "PK_Ratings" PRIMARY KEY("Id" AUTOINCREMENT),
	CONSTRAINT "FK_Ratings_Vikings_VikingId" FOREIGN KEY("VikingId") REFERENCES "Vikings"("Id") ON DELETE CASCADE
);
```

---------

Co-authored-by: Robert Paciorek <robert@opcode.eu.org>
2025-02-08 10:19:43 +01:00
ABrokenTV
c1d6850867
Add "Land" Payouts to RatingController.cs (#17)
Added payouts for Adventureland, Marineland, and Futureland, from "Lost Island Training" standalone port.
2025-02-07 17:12:07 +01:00
Robert Paciorek
65aa1fecb5 add MaM missions data, fix old clients mission api
- added MaM missions xml data (thanks to spectershade)
- send completed task to old client via GetUserMissionState API
2024-12-30 11:28:44 +01:00
HaiFire3344
d56c492eb1
Prevent logging into accounts from different games (#13)
[Originally authored by AlanMoonbase](1e9ca7e19c (diff-bb10d4643a2fa54d983a574662f579e09c056f29837397a10cd9300a98fbcc7cR171))
2024-12-29 17:15:42 +01:00
Hipposgrumm
4b6f782e21
Eat My Dust support (#12)
DB MODEL CHANGES! I don't know how to deal with those.
Support for EMD's MMO rooms and API token.
Groundwork for group/clan system (hence schema changes). Only functional for EMD right now (if I implemented it correctly).

* Removed debug logged messages.
* Update comments in GroupController.cs
* Fixed position of parenthesis in ConfigurationController.cs
* Noted changes in README
* Amendment to previous commit, these are supposed to be alphabetical.
* Changed unnecessary extra check for EMD ClientVersion.
2024-12-29 17:00:21 +01:00
YesntSoup
ca951d78e8
Change automatic RaisedPet name to not happen for WoJS (#6)
* Change automatic RaisedPet name to not happen for WoJS

This is because Voltage Dragons get a name later, so this placeholder name currently gets assigned first. 

I've never done this before, so let me know if I did it wrong lol

* Added Max_OldJS to the previous PR
* Added HaiFire's suggestion
* Added [FromForm] string apiKey

Ty HaiFire again!
2024-09-03 22:48:06 +02:00
2f5a589bd4 Support for WoJS and SS in GetAnnouncementsByUser
* Add Announcement To Send Player To SanctuaryBabySS In SuperSecret
* Add Announcement for Amphitheater in WoJS
* Announcements are send based on per game resources file

Co-authored-by: Robert Paciorek <robert@opcode.eu.org>
2024-08-19 21:45:43 +00:00
Hipposgrumm
6a9f2722e1 Added saving support for Ice Cubed. (#15)
Saving support now exists for Ice Cubed and any other games using the system.
2024-08-12 09:06:13 +00:00
YoshiCraft64
757392d4d5 GetPayout update (#14)
Update RatingController.cs for an update to GetPayout
Updates GetPayout to have a different payout system for each minigame.
2024-08-12 09:06:13 +00:00
Hipposgrumm
9ca4dfc7ae Added rank names and colors for MB. (#13) 2024-08-12 09:06:13 +00:00
Hipposgrumm
4e02ee19b4 Fix Mutt Textures not immediately Updating (#12)
* Math Blaster Mutts will now correctly have their textures changed immediately out of the incubator.
2024-08-12 09:06:13 +00:00
Spirtix
e29f10c406
Purchase optimization (#3)
* purchase optimization

* purchase: simplify wallet update

* fix purchase: swap coins and gems

* purchase: rename mysteryBox to addAsMysteryBox

* purchase: adjust item quantity note

* purchase: change GetItemQuantity API
2024-07-25 22:54:48 +02:00
Hipposgrumm
28e275bcaa Math Blaster Pod Parties and Birthday Pod Parties (#10)
* Added support for Math Blaster Pod and Birthday parties.

* Now sends only the appropriate parties for each game.
Math Blaster only gets parties in MyPodInt.
JumpStart only gets parties in MyNeighborhood or MyVIPRoomInt.
Parties in any other rooms don't get sent.
Any other games don't get sent parties (I couldn't work out how to set up SuperSecret for testing).
2024-07-16 08:48:52 +00:00
Hipposgrumm
10d0fed889 Added Support for Math Blaster Movies (#9)
Added a result for type `MathBlasterMovie`.
2024-07-16 08:48:52 +00:00
Robert Paciorek
69910dad12 fix internal error in GetAvatarByUserId 2024-07-16 08:02:44 +00:00
Hipposgrumm
a0f7b1ba3e Fixed Mutt Pods + Implemented GetTopAchievementPointBuddiesByType
* Mutt Couch Fixes
Removed duplicate mutt from the couch.
Mutts on couch in other players' mutt pods will now reflect that player's account.

* Buddies list will now appear on the sidebar, making the mutt pod tutorial possible.

---------

* Fixed some issues that were pointed out.

* ContentController.GetUnselectedPetByTypes now uses regular IF check for setting owner viking.

* remove unused apiKey from GetActiveRaisedPet args
2024-07-12 07:44:30 +00:00
Robert Paciorek
a45323b447 bugfix for "Fixed Math Blaster's mutt textures." 2024-07-10 19:25:30 +00:00
Hipposgrumm
2203bae81f Fixed Math Blaster's mutt textures. (#6)
Will now set to appropriate mutt texture if pet is using a larva texture and is older than HATCHING.

The pet data saving code will now set to appropriate mutt texture if pet is using a larva texture and is older than HATCHING.
This fixes the issue that mutts were using their old larva's texture instead of the mutt's default texture.
Any existing mutts using the wrong texture will have it changed when the pet is saved (not when loaded). For users to see the fixed texture they would need to restart the game after the affected mutt(s)' data changed in any way (or otherwise saved to the server).
2024-07-10 08:27:43 +00:00
meleestars
9993198a9b Implemented neighborhoods, fixed default houses
Also:
* implemented ``GetAvatarByUserID`` from @Moonbase's previous PR.
* implemented ``GetPeriodicGameDataByGame`` and ``GetGamePlayDataForDateRange``

---------

Co-authored-by: Alan Moon <alanmoonbase2004@gmail.com>
2024-07-10 08:27:23 +00:00