# Unity Logic System

This topic is 4345 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Am trying to create a conversagent agent capable of memory and thought. Check my other thread for more details. I am after a logically capable agent who can detect contradictions or can validate conclusions according to the common laws of logic. I have been checking the Wikipedia for axioms of logic, Boolean algebra. How could I integrate these axioms into a framework to solve any problem that I might encounter. Your help is highly appreciated.

##### Share on other sites
Fortunately for you, this is an extremely well-studied area of artificial intelligence. The procedure for doing this goes something like the following diagram. Imagine that we ask the system to answer the question: "Given that all men are mortals (and that there's at least one man), are there some mortals who are men?"

{ English statements } ------+                        "All men are mortals."                             |                         [natural language parser]                             |                             |{ logical predicates } <-----+                        "∀ m | m ∈ Men &rArr m ∈ Mortals"            |            |        [inference engine]            |            +----------------> { knowledge base }     "P1 = ∀ m | m ∈ Men ⇒ m ∈ Mortals"                                     |                                     |                           [deductive engine]                                     |                                     |{ draw conclusions for answer } <----+                "P1"                                                      "P1 ⇒? (∃ m ∈ Mortals ⇒ m ∈ Men)"                                                      ∴ (∃ m | m ∈ Mortals ⇒ m ∈ Men)"                                                      return true;

Unfortunately for you, English is an extremely ambiguous language. To avoid a very complicated system, you will probably need to bypass the natural language parser step and require your users to deal directly with logical predicates. Be warned that constructing a system to process the logical inputs and draw inferences is approximately as much work as building a compiler for a small but nontrivial language. If you want to know more, an excellent book on the subject is "Artificial Intelligence: A Modern Approach" by Russell and Norvig.

hope that helps,

##### Share on other sites
What is this little square that keeps being iterated all over, I saw it in Wikipedia, you typed it here... It is driving me insane.

As for the book you mentioned, I am away from university right now, but I will check it as soon as possible.

I was thinking about using a transformation engine with something like the A* algorithm to find whether there is, or isn't any contradictions with the acquired knowledge. I am stomped at the first step, which is which rules to use.

Till now, I am considering studying each operator {not, and, or} and creating transformation laws for any combination of those. But am still a little fuzzy about the whole thing and I still need further clarification please.

Thanks for the illustrative diagrams kSquared.

##### Share on other sites
Quote:
 Original post by arithmaWhat is this little square that keeps being iterated all over, I saw it in Wikipedia, you typed it here... It is driving me insane.

Can you be more specific? I don't see any squares in what I typed.

[edit: It might be that your browser can't render certain symbols. Can you take a screenshot of my post?]

##### Share on other sites
It seems I am missing some font packages since it cannot render the &-forall glyph.. How should I correct this?

##### Share on other sites
Quote:
 Original post by arithmaIt seems I am missing some font packages since it cannot render the &-forall glyph.. How should I correct this?

Your browser is responsible for rendering the glyphs, not per se the fonts (your browser should be substituting things as need be, or drawing them itself).

##### Share on other sites
Quote:
 kSquaredBe warned that constructing a system to process the logical inputs and draw inferences is approximately as much work as building a compiler for a small but nontrivial language.

What do you exactly mean. The inference algorithm is hard or the parsing of english is hard?

##### Share on other sites
Have a wild guess
(inference has been done thousands of different algos)

##### Share on other sites
Quote:
Original post by arithma
Quote:
 kSquaredBe warned that constructing a system to process the logical inputs and draw inferences is approximately as much work as building a compiler for a small but nontrivial language.

What do you exactly mean. The inference algorithm is hard or the parsing of english is hard?

Well, neither of them are easy. But parsing natural language remains a largely unsolved problem.

• 10
• 17
• 9
• 14
• 41
• ### Similar Content

• I have already chosen my favorite from the concept artist which one do you like better 1 2 or 3?

Also still looking for a writer and a 3d artist message if you are interested!

• Hey There,
I am a developer and Im working on a blockchain based infinite runner type game. Right now, I am working on releasing the beta version with a couple other game developers, but would love to expand the team and have other talented and bright people contributing. The game portion of the project isnt very complicated, and wouldnt require anyone to pull thier hair out for it.
Thank you!

• I am trying to build a particle system for unity based on "Destiny particle architecture " released in Siggraph.
I encounter a problem in trying to understand how they iterated this:

Converted to spline function and the result is

i wanted to know how did they converted the function in the editor to represent the graph ??

• This is my first experiment use for create my original character little cute dragon chibi use zbrush and blender and use unity3d assest free for enviroment scene you have feedback?

• By Aryndon
Project Redemption is an semi-fantasy RPG with a linear story and an elaborate combat system.
We are building in Unity and are currently looking animators and artists.
What we are looking for
-Someone who is okay with split revenue/profits when finished
-Collaborate with others in the team. Do you have an idea/thought on what should be included? Tell us!
If you are interested. Please message me and I will get back to you as soon as possible! Or add me on Discord AJ#6664
• By Aggrojag
Hello!
I'm working on a game that is a narrative driven dark comedy with some small aspects of platforming and puzzle solving. The project is rather small as well. It touches on topics such as suicide, mental illness, family, corruption, free-will, and redemption.
This project is exercise in polish, this means some experimentation will be needed along with some reworking of assets as they're provided.
This will be a revshare model.
First, I'm looking for a 2D sprite artist, not pixelated, that can compliment the style of the attached images, and be similar to the temporary character.
We are looking to bring on a SFX designer at this time. Full list of required SFX will be available upon request, as well as a build with all elements related to sound implemented in some form (many SFXs pulled from the web for now). Will likely require some field recording, and some pretty strange SFX for when things get weird. I imagine a good portion of these will be quite fun to create.
Lastly, I'm looking for a male voice actor, English should be your primary language. There will be at minimum two characters that will need to be brought to life through vocals. The first voice is similar to Marvin from Hitchhiker's Guide to the Galaxy. A reference for the second voice would be a mix of Ren (Ren & Stimpy), and Android 21 (DragonBallFighterZ). Due to formatting, I'm not including YouTube links in the post, sorry.

WIP Scene with our custom shaders attached (platforms are lazily placed, as this was an asset test):

A scene with dynamic lighting and temp character:

If you made it to the bottom, thank you, and I look forward to hearing from you.

• Ok, firstly, Hi.

This is my first post on this forum. I am an Indie Dev making my first game so bear with me when I say dumb stuff, I'm on a huge learning curve.

My first question is about inventory systems for unity. I am trying to make a survival type game with crafting. I have purchased Inventory manager pro by devdog from the unity asset store and it seems like a pretty powerful assett but for an intermediate coder its a little tough to use.  I'm beginning to wonder if it was the right purchase.
So my question is.... does anyone have any experience of inventory plugins / systems for unity and can anyone reccomend a system to me?
It needs to have the following: Loot system, crafting system, character sheet, blueprint system,  character stats system. Ideally with as little coding as possible.

Thanks

• I've got a bug with my brick breaker style game. The bricks move down one line at a time ever 1.5 seconds. What appears to be happening is occasionally the ball will be just about to hit the brick when the brick moves down a line, and now the ball is behind it. I'm not sure how to fix this. I have two ideas but I'm not sure of implementation. 1 solution would be to check where they were and where they are going to be before rendering the frame. Then if they crossed paths, then register the brick as hit. Solution 2 would be change how the bricks move. I could maybe slide them down line by line, instead of a jump down. I'm not sure of this will fix the issue or not. Any ideas?
• By Pixeye
I wrote an extension for unity inspector that allows to group/fold variables.
Available on github  , cheers!

• I'M interested in programming tools (For animation, UI, etc). Can anyone suggest me the resources where I can start learning or which technologies I need achive it.

Thanks,
Rakshit
• ### Forum Statistics

• Total Topics
631067
• Total Posts
2997736
×