TUXDB - LINUX GAMING AGGREGATE
made by: NuSuey
NEWSFEED
GAMES
▪️CROWDFUNDING▪️COMMUNITY DEALS▪️STEAM DECK▪️CALENDAR
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 11 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Benedikt][David Martínez Martí]

Any feedback for tuxDB? Join us!

Screenshot 1
Fullscreen Screenshot 1
×
Screenshot 2
Fullscreen Screenshot 2
×
Screenshot 3
Fullscreen Screenshot 3
×
Screenshot 4
Fullscreen Screenshot 4
×
Screenshot 5
Fullscreen Screenshot 5
×
The Ocean Will Have Us All is a first person exploration game.
Experience a day in the subatomic life of Moira Leech. Get up, go to work, go home, go back to sleep.
Or.
Go off the the beaten track! Take charge! Stick your finger in an electrical socket!
A neutopian mysterium adventure game from Moloch Media.
  • Meet and interact with the characters that live on your street.
  • Or just ignore them.
  • Go off on tangential subplots.
  • Get in trouble.
  • Listen to dynamic cassette chip music.
  • Look at a high-fidelity fully 3D texture mapped world.
The Ocean Will Have Us All
Moloch MediaDeveloper
Moloch MediaPublisher
in the futureRelease
🎹🖱️ Keyboard + Mouse
🎮 Full Controller Support
No user reviews (0 reviews)
Tutorial: Smile Game Builder and Unity Hackin' - VARIABLES

Welcome to another Smile Game Builder tutorial, showcasing some of the features and tricks I've found and worked on while developing "The Ocean Will Have Us All."

In this tutorial I'm going to show you how to get at the variables in a game exported from Smile Game Builder to Unity.

Step 1. We'll create a new project.Game Description Image

Step 2. Put in a new "advanced event."
Change the graphic to a character so we can see them.Game Description Image

Step 3. Let's set this event up to put a message in a string variable that we'll output in Unity and display another variable with a message from Unity.
Put in a "Change String Variable Box" event. Set it to variable number 254 and rename it to "MessageToUnity". Also rename string variable 255 to "MessageFromUnity".Game Description Image
Set it to "Substitute String" with "Hello Unity!"
Then create a "Display Message" event: "\$[MessageFromUnity]"Game Description Image

Step 4. Playtest the game. Talk to the character, a blank message box appears.Game Description Image

Step 5. Export the game to Unity.Game Description Image

Step 6. Open the exported project in Unity. Open it from the "entry.unity" file.

Step 7. Let's create a script for our unity hackin'. We'll call it "MyUnityHacks"
Create a gameobject and add the script.Game Description Image

Step 8. Open up "MyUnityHacks.cs"
We'll add some static variables (hackin'!) that we'll copy our variables to from within the Smile Game Builder code (more hackin').

Add these lines to the class:
public static string MessageFromUnity;
public static string MessageToUnity;

In void Start() add
MessageFromUnity = "Hello Smile Game Builder!"

in void Update() add

if(MessageToUnity != null)
{
Debug.Log(MessageToUnity);
}
Game Description Image

Step 9. Open up "Assets\src\engine\ScriptRunner.cs"Game Description Image

Step 10. Look for "internal bool Update()" and add these lines
MyUnityHacks.MessageToUnity = owner.owner.data.system.StrVariables[254];
owner.owner.data.system.StrVariables[255]= MyUnityHacks.MessageFromUnity;
Game Description Image

Now every frame MessageToUnity in MyUnityHacks will be updated with whatever is in string variable 254 [MessageToUnity] in your SGB game.
And every frame string variable 255 [MessageFromUnity] will be updated with whatever you've put in MessageFromUnity in the MyUnityHacks script.

All the integer variables from your game are stored in the array owner.owner.data.system.Variables[]
All the event switches are in owner.owner.data.system.Switches[]

Step 11. Run the project in Unity. Talk to the character. This time the message box should say "Hello Smile Game Builder!"
In the console in Unity you'll see the "Hello Unity!" message (repeated every frame.)Game Description Image

Step 12. Use your imagination! Extend your games in new and exciting ways in Unity! Do amazing things!

[ 2021-08-13 05:51:41 CET ] [Original Post]

Minimum Setup

  • OS: Ubuntu 16.04+
GAMEBILLET

[ 6537 ]

7.54$ (16%)
49.77$ (17%)
16.57$ (17%)
3.93$ (21%)
2.98$ (88%)
41.47$ (17%)
24.87$ (17%)
8.27$ (17%)
4.95$ (17%)
24.87$ (17%)
16.59$ (17%)
49.77$ (17%)
5.03$ (16%)
12.42$ (17%)
24.87$ (17%)
26.65$ (11%)
16.57$ (17%)
4.95$ (17%)
17.75$ (11%)
17.79$ (11%)
53.95$ (10%)
33.17$ (17%)
20.72$ (17%)
1.97$ (87%)
4.87$ (19%)
5.87$ (16%)
16.57$ (17%)
20.72$ (17%)
20.72$ (17%)
4.07$ (80%)
GAMERSGATE

[ 2899 ]

2.03$ (86%)
1.2$ (92%)
2.25$ (89%)
11.24$ (55%)
1.88$ (62%)
0.42$ (79%)
0.43$ (91%)
0.43$ (91%)
6.0$ (80%)
2.13$ (79%)
1.58$ (77%)
1.58$ (77%)
2.55$ (87%)
3.4$ (91%)
0.58$ (92%)
0.51$ (74%)
2.55$ (91%)
0.64$ (87%)
1.7$ (79%)
0.63$ (87%)
0.6$ (91%)
3.0$ (85%)
30.0$ (50%)
1.58$ (77%)
1.7$ (91%)
3.4$ (91%)
0.68$ (86%)
3.4$ (91%)
1.58$ (77%)
0.75$ (92%)
MacGamestore

[ 4866 ]

11.24$ (55%)
7.99$ (84%)
1.99$ (80%)
4.89$ (84%)
52.99$ (12%)
1.49$ (85%)
2.99$ (70%)
0.99$ (80%)
1.09$ (95%)
1.49$ (85%)
2.98$ (80%)
1.19$ (76%)
4.99$ (83%)
1.79$ (91%)
1.19$ (94%)
73.99$ (8%)
2.99$ (80%)
1.09$ (82%)
2.49$ (88%)
1.89$ (81%)
3.99$ (80%)
53.99$ (10%)
31.99$ (20%)
2.99$ (80%)
3.99$ (80%)
3.99$ (73%)
3.99$ (87%)
3.49$ (65%)
16.99$ (15%)
1.39$ (91%)

FANATICAL BUNDLES

Time left:

356212 days, 10 hours, 32 minutes


Time left:

356212 days, 10 hours, 32 minutes


Time left:

1 days, 17 hours, 32 minutes


Time left:

7 days, 17 hours, 32 minutes


Time left:

18 days, 17 hours, 32 minutes


Time left:

21 days, 17 hours, 32 minutes


Time left:

22 days, 17 hours, 32 minutes


Time left:

31 days, 17 hours, 32 minutes


Time left:

53 days, 18 hours, 32 minutes


Time left:

31 days, 17 hours, 32 minutes


HUMBLE BUNDLES

Time left:

2 days, 4 hours, 32 minutes


Time left:

2 days, 11 hours, 32 minutes


Time left:

3 days, 11 hours, 32 minutes


Time left:

3 days, 11 hours, 32 minutes


Time left:

5 days, 11 hours, 32 minutes


Time left:

10 days, 11 hours, 32 minutes


Time left:

12 days, 11 hours, 32 minutes


Time left:

17 days, 11 hours, 32 minutes


Time left:

19 days, 11 hours, 32 minutes

by buying games/dlcs from affiliate links you are supporting tuxDB
🔴 LIVE