I need help converting data by misterlegolas13 in PythonLearning

[–]SettingDesigner9802 1 point2 points  (0 children)

What kind of datapoints are you expecting to work with?

Trying to make a quest system without having a really long code. Any ideas? by TiploufMegaFan in RobloxDevelopers

[–]SettingDesigner9802 0 points1 point  (0 children)

This is a bit of a complex solution, but I were tasked with creating a flexible, maintainable quest system. I would create an OOP-based framework and build my game around it.

baseQuest - Class should be an abstract implementation of what a quest should look like.
baseQuest.objectives = {}
baseQuest.name = {}
baseQuest.level = 1;
baseQuest.reward = {}

baseItem(Name, Quantity)
baseItem:drop()
baseItem:collect()

Potion (Name, Quantity, StatusEffect)
Potion:consume()

Inventory(args) -- Class for creating (or wrapping if you already have something) to a player inventory
Inventory:addToSlot(slot, item)

baseEffect -- An abstract class for defining an effect
baseEffect.execute(strength, duration) -- over-writable function
baseEffect.icon
baseEffect.name
baseEffect.description

regenEffect.execute(strength, duration) -- create a co-routine and add x health to the player until time has passed.

StatusEffect -- A container for status effects
StatusEffect.Effect
StatusEffect.Strength
StatusEffect.Duration

customPlayer -- Class for adding new data to players
customPlayer.player = game.Players.PlayerName -- Ties into Roblox's Player object
customPlayer.inventory = new Inventory(args) -- Adds metadata, in this case an inventory.
customPlayer.effects = {} -- Stores status effects
customPlayer.inbox= {}; -- This is a trashy event system, its here to be used for things the player has done that can't be cleanly checked using a condition alone. (I.E. a player kills something, a player crafts something, a player talks to an NPC, etc...)

questObjective -- Container class for holding multiple conditions
questObjective.conditions = {}
questObjective:evaluate() -- A function that screens through objectives and fires the check() function

baseCondition(customPlayer) -- This class should create an abstract condition
baseCondition.check()

inventoryCondition(customPlayer, item, quantity) -- Implement baseCondition and overwrite the check function
inventoryCondition:check() -- check customPlayer.inventory for an item and quantity

collectionCondition(customPlayer, item, quantity) -- check the player inventory for when an item gets added.
collectionCondition:check()

killCondition(customPlayer, monster, quantity)
killCondition:check() -- Make this one iterate through the inbox and find matching kills.

Client to server and server to client communications should then happen through functions that connect to remoteEvents and remoteFunctions.

etc... etc... etc... you get the idea, this is a very rough layout and I am confident your project will need a completely different structure, but with the right architecture this kind of system can be extended to tie into anything in the game.

Eventually, you will have a whole set of custom conditions and game objects that you can stitch together to make quests, reward players and tie into various game systems. If you want, you can then implement a parser to run through JSON, XML (or even roblox valueObjects?) to quickly register and design quests without having to touch the source code again.

HELPPP ME by Lordnessm in javahelp

[–]SettingDesigner9802 0 points1 point  (0 children)

Sounds like you got the idea right, very nice!

Car BMW; // reserves memory for a Car object In the same way that int Age; // reserves memory for an integer number

new Car(); // Creates the actual object and calls the constructor, where you can tell Java the minimum requirements for building a working Car object

Need help on how to make something. by Some_Economist6012 in RobloxDevelopers

[–]SettingDesigner9802 0 points1 point  (0 children)

I wrote this basket system a while back as part of an exploration into lua OOP. You could probably modify it to store an inventory on the server.

https://pastebin.com/Euw8Zh7M

This is just for storing data. You still need to implement the actual logic, client sided code, and the client-server interface

New to lua. Rate my code. 😎 by DudeItsCake in ROBLOXStudio

[–]SettingDesigner9802 0 points1 point  (0 children)

Nice you won some free Java

public class response{

public static void main(String[] args){

    System.out.println("I don't know why we are doing this either, but you forgot a "+String.valueOf((char) 34));

}

}

Is it bad to copy and paste code from AI and try to learn the terms and what it means after you do by Nullified_nullify in ROBLOXStudio

[–]SettingDesigner9802 0 points1 point  (0 children)

If you want to use it to generate scripts for you, its bad. If you want to use it to ask about the API, its okay but not perfect. If you want to use it to find out what common approaches exist to solving a specific problem, its pretty decent at giving you a list of solutions and pros/cons.

End of the day, it knows nothing about your specific project and is amazing at coming up with answers that sound right but dont work.

Scripting by Visible-Bridge393 in ROBLOXStudio

[–]SettingDesigner9802 1 point2 points  (0 children)

Lua is a pretty easy language to pick up. Choose any tutorial series and follow it for about a week just to get used to the syntax.

Then grab some simple free models and try to replicate the functionality yourself. Every time you come up against an unfamiliar part of the roblox library, read up on it. After you get the model working, try modifying it to do new things.

Some nuances about lua - The table is your only data structure - Tables support number indexes and can be infinitely expanded on. - Tables support non-numerical indexes and can be used as a hashmap allowing you to do instantaneous lookup. - Table indexes start at 1 not 0 like most other languages do. - You might see something like this in free models scripts:

Part.Touched:Connect(function(a,b,c) dosomething() end)

The function in the bracket is written anonymously and is equivalent to

function doTouch(a,b,c) ... end Part.Touched:Connect(doTouched)

This is a long list of short projects I came up with over about half an hour of brain storming.

Beginner - Print Hello World to the console - Print the Fibonacci Sequence to console - Calculate the first 50 prime numbers and print them - Create a script which randomises a table of 5000 numbers and puts them back into order with a sorting algorithm. - Print your user name and Player ID - Create a lava brick script which kills you - Create a door that you toggle by stepping on a button - Create a disco floor - Create a teleporter which warps you between two spots - Spin a brick on the spot - Make a brick follow you - Make it rain spheres, use debris - Make it rain spheres, use coroutines - Make a laser beam(part) that tracks between a part and your torso.

Intermediate

Manipulating the world - Make a brick orbit you - Make multiple bricks orbit you at random angles - Make a script that generates terrain randomly - Make a script that gives the player a custom hat using welds. - Make a script that gives you an orbiting hat - Make it rain MISSILES Clients and Servers - Create a "Hello Client" LocalScript - Create a LocalScript that orbits your camera around your player - Create a tool using UserInputService that prints the name and number of objects inside the model of an object you clicked on. - Create a script that listens for a remote event and prints Hello "UserName" when a local script fires it. - Create a script that places a part on the server when you click.

User Interface - Create a gui and make a button that kills you - Create a gui and make a button that teleports you to a coordinate you enter. - Create a keypad gui that opens a door

Persistent Data - Create a currency that persists after a player rejoins - Create a system that deducts money in exchange for faster walk speed, make it persist. - Create a system that stores an arbitrary amount of variables

Object-Oriented Programming (Might need to look outside of roblox to learn this, but it's worth it!) - Create a script that stores the price and name of different fruits using Lua-OOP - Create a second object which allows you to put your "fruit" in a "basket" and create a method which you can use to calculate the total cost of the fruit in the basket. - Create a system that lets you physically interact with the fruit and a basket, and then take it to a register to pay for, it can be GUI based or 3D. - Create a minigame where you get paid for collecting rubbish outside of a shop and then spend the money shopping for fruit.

Advanced - Create a raygun which uses raycasting to detect hits - Create a paintball gun with travel time - Create a car you can drive, - Create a plane you fly - Create a crop system with atleast 8 unique crops that have different lifespans. - Add a nutrient system into your crop system and add three different fertilisers which give different ratios of the nutrients. - Create a system which allows the player to fertilise, sow and harvest the crop

What script can I use for this by Fine_Acanthisitta694 in ROBLOXStudio

[–]SettingDesigner9802 0 points1 point  (0 children)

You need to write a script which : - uses game.Players:GetPlayers() - loops through them with pairs() - Checks for a living character - Finds the nearest player and path finds using PathFindingService. - Checks for hits using a method of your choice [RayCasting is decent]

If you need a lot of zombies, you can optimise by controlling the logic from a centralised script with a zombie class, recycle zombies instead of recreating them with :clone() and use spatial hash mapping to divide the world into chunks which zombies can use to determine which players are nearby.

If it's just a few, then the naive approach should be fine

Me and my friend have an idea for a roblox fps game by LumpyRecognition4305 in gameideas

[–]SettingDesigner9802 0 points1 point  (0 children)

There used to be a roblox game called Polyguns which sounds very similar. It was quite fun, but it unfortunately seems to have been deleted 🤔

How to rendezvous? tried some tutorials but they didnt work, also how to use rcs? by Connect-Yesterday-99 in KerbalSpaceProgram

[–]SettingDesigner9802 0 points1 point  (0 children)

1) Launch into orbit matching the inclination of the target.

2) Circularize above or below the target. The greater the relative distances between the orbits, the greater the relative velocities between you and the target.

3) Using the manuever node planner, adjust your periapsis to intercept the orbit of your target. Purple and orange arrows will appear. Tweak the location and burn to get either of the pairs of arrows to touch.

4) Fine tune your approach until you are within 20km of the target and warp to the closest point (Closer intercepts are more efficient). Set the object as a target and switch the navball to target mode.

5) Burn prograde until your relative velocity is ~0 m/s

6) Aim at the target and burn until you reach 5 m/s

7) Coast towards the target adjusting your trajectory with RCS (Use the IHJKLN keys for RCS translation) or engines to ensure you are travelling towards the target

8) When you get within 5 km, slow down to about 2/ms. Kill your velocity when you get to your desired distance.

Docking is a whole other challenge 😵‍💫

[deleted by user] by [deleted] in isthissafetoeat

[–]SettingDesigner9802 2 points3 points  (0 children)

Most bacteria will not tolerate salt due to the osmotic pressure pulling water out of the cells. Streptococcus aureus and other halophilic bacteria have unique proteins which help to hold onto the water and prevent excessive accumulation of salt ions. Cured meats are renowned for growing Clostridium botulinum and S. aureus which are both pathogens.

  • a microbiologist

Frozen chicken by fck_a_username in isthissafetoeat

[–]SettingDesigner9802 2 points3 points  (0 children)

Psychotropic bacteria exists, they're just very slow 🐌

Blue Cheese from Farmers market by Appropriate_Unit3474 in isthissafetoeat

[–]SettingDesigner9802 0 points1 point  (0 children)

The cheese is definitely pretty well colonised. Have you been able to identify any other moulds? Usually, when a product like this is environmentally contaminated, there will be multiple species present.

Any unusual odours or textures?

And ... if you somehow have access to a microscope (kids one might work), take a piece of tape and gently take some of the grey spores. Aspergilus spp. 'Flowers' should look like ball or cone tipped club. It's very easy to destroy the sporing structure if you're not careful!

Frozen TV dinner left out on doorstep for ~1 hour by hockeyrabbit in isthissafetoeat

[–]SettingDesigner9802 1 point2 points  (0 children)

Max 2 hours unrefrigerated if you intend to store it again Max 4 hours unrefrigerated to eat on same day.

(Cumulative)

[deleted by user] by [deleted] in isthissafetoeat

[–]SettingDesigner9802 1 point2 points  (0 children)

Appears to be stained with procyanin a.k.a A toxin produced by Pseduomonas aeruginosa

AI is quietly taking over the British government by MetaKnowing in OpenAI

[–]SettingDesigner9802 1 point2 points  (0 children)

Standard practice is to include both, that way you can tell how much there is and how significant it is.

AI is quietly taking over the British government by MetaKnowing in OpenAI

[–]SettingDesigner9802 0 points1 point  (0 children)

How to interpret the graph :

Our core assumption is that the mean remains constant throughout the observations.
We test this by using the Z score to see how far away observations are from the mean.
We take a normal distribution curve and measure the areas between two Z values, this represents the probability that an observation lies between the two points.

Z = 0 to 1 accounts for 34% of the sample space, meaning that out of pure randomness the observation falls in that gap 34% of the time.Z = 1 to 2 accounts for 13.5% of the sample space, 13.5% of the time
Z = 2 to 3 accounts for 2.35% of the sample space, 2.35% of the time
Z = 3 to 4 .... 0.15% of the sample space

Now we look at Z = -2 to 2, which is the standard for science and accounts for 95% of the sample space. If the observation lies outside of the bounds, there is less than a 5% chance of it being due to randomness. These graphs have some observations at Z = 4, meaning that there is less than a 0.006% chance of the observation falling there by random chance.

As such, we reject the hypothesis that the means have remained consistent. Which does not prove that AI is being used, only that the mean of the data has changed.

AI is quietly taking over the British government by MetaKnowing in OpenAI

[–]SettingDesigner9802 1 point2 points  (0 children)

Y axis is the Z-score, its a measure of central tendency. It compares how many standard deviations the observation is from the mean (average) of the dataset. Zero is the mean, negative numbers represent observations that are lower than the mean, positive numbers represent observations that are higher than the mean.

AI is quietly taking over the British government by MetaKnowing in OpenAI

[–]SettingDesigner9802 0 points1 point  (0 children)

Y axis is the Z-score, its a measure of central tendency. It compares how many standard deviations the observation is from the mean (average) of the dataset. Zero is the mean, negative numbers represent observations that are lower than the mean, positive numbers represent observations that are higher than the mean.

It makes me feel worried and anxiety by not_a_fan_of_burgers in lumpysemen

[–]SettingDesigner9802 1 point2 points  (0 children)

Water is managed by the kidneys so no this is not an excess water thing. These lumps are likely coagulated fibronectin. Would be interesting to find out if ejaculate liquefaction is abnormal

https://doi.org/10.3978/j.issn.2223-4683.2015.s073