Rain World

Rain World

Iterator Kit
eaflorio 11 Nov, 2023 @ 7:31am
Problems with coding the iterator
If certain things are formatted incorrectly, the whole thing breaks.
Last edited by eaflorio; 11 Nov, 2023 @ 4:45pm
< >
Showing 1-15 of 15 comments
How do you even find out how to color it? I can't do it :(
eaflorio 11 Nov, 2023 @ 11:58am 
[
{
"id": "CustomOracle",
"roomId": "BW_AI",
"cornerPositions": [
{"x": 10, "y": 32},
{"x": 38, "y": 32},
{"x": 38, "y": 3},
{"x": 10, "y": 3},
],
},
"body": {
"oracleColor": {
"r": 239, "g": 209, "b": 74
},
"_comment": "gown can also be null",
"gown": {
"color": {
"_comment": "solid or gradient",
"type": "gradient",
"from": {
"h": 270, "s": 108, "l": 108
},
"to": {
"h": 288, "s": 151, "l": 144
},
},
},
"sigil": null,
"eyes": {"r": 0, "g": 0, "b": 0, "a": 255}
},
],

This is my .json
Twofour2  [developer] 11 Nov, 2023 @ 2:10pm 
You need your json to be formatted correctly. I haven't tested it but here's what you wrote with correct formatting.
[
{
"id": "CustomOracle",
"roomId": "BW_AI",
"cornerPositions": [
{"x": 10, "y": 32},
{"x": 38, "y": 32},
{"x": 38, "y": 3},
{"x": 10, "y": 3}
],
"body": {
"oracleColor": {
"r": 239, "g": 209, "b": 74
},
"_comment": "gown can also be null",
"gown": {
"color": {
"_comment": "solid or gradient",
"type": "gradient",
"from": {"h": 270, "s": 108, "l": 108},
"to": {"h": 288, "s": 151, "l": 144}
}
},
"sigil": null,
"eyes": {"r": 0, "g": 0, "b": 0, "a": 255}
}
}
]
eaflorio 11 Nov, 2023 @ 3:32pm 
Originally posted by Twofour2:
You need your json to be formatted correctly. I haven't tested it but here's what you wrote with correct formatting.
[
{
"id": "CustomOracle",
"roomId": "BW_AI",
"cornerPositions": [
{"x": 10, "y": 32},
{"x": 38, "y": 32},
{"x": 38, "y": 3},
{"x": 10, "y": 3}
],
"body": {
"oracleColor": {
"r": 239, "g": 209, "b": 74
},
"_comment": "gown can also be null",
"gown": {
"color": {
"_comment": "solid or gradient",
"type": "gradient",
"from": {"h": 270, "s": 108, "l": 108},
"to": {"h": 288, "s": 151, "l": 144}
}
},
"sigil": null,
"eyes": {"r": 0, "g": 0, "b": 0, "a": 255}
}
}
]

I see.
eaflorio 11 Nov, 2023 @ 4:46pm 
Its not working again, but it worked until actions

[
{
"id": "CustomOracle",
"roomId": "BW_AI",
"cornerPositions": [
{"x": 10, "y": 32},
{"x": 38, "y": 32},
{"x": 38, "y": 3},
{"x": 10, "y": 3}
],
"body": {
"oracleColor": {
"r": 5, "g": 5, "b": 5
},
"_comment": "gown can also be null",
"gown": {
"color": {
"_comment": "solid or gradient",
"type": "gradient",
"from": {"h": 56, "s": 25, "l": 12},
"to": {"h": 56, "s": 100, "l": 72}
}
},
"sigil": null,
"eyes": {"r": 255, "g": 205, "b": 0, "a": 255},
"halo": {},
},
"roomEffects" : {
"swarmers": 10,
"pearls": "pebbles"
},
{
"event": "playerEnter",
"texts": ["Hello <PlayerName>", "This is the second dialog"]
}
}
]
my s key i broken 12 Nov, 2023 @ 8:19am 
Check through the github repo, there's a sample iterator mod with correctly formatted oracle code with everything you would need.
eaflorio 12 Nov, 2023 @ 5:12pm 
Originally posted by pan man from hell:
Check through the github repo, there's a sample iterator mod with correctly formatted oracle code with everything you would need.

Holy crap your right
starshooter81 16 Nov, 2023 @ 9:14am 
so my iterator isn't appearing in the chamber. this is a slight edit of the template json.

[
{
"id": "Lugr",
"roomId": "RI_ai",
"gravity": 0.9,
"airFriction": 0.99,
"annoyedScore": 10,
"angryScore": 0,
"talkHeight": 0,
"pearlFallback": "pebbles",
"roomEffects": {
"swarmers": 0
},
"cornerPositions": [
{"x": 9, "y": 32},
{"x": 38, "y": 32},
{"x": 38, "y": 3},
{"x": 10, "y": 3}
],
"body": {
"oracleColor": {
"r": 239, "g": 209, "b": 74
},
"halo": null,
"_comment": "gown can also be null",
"gown": {
"color": {
"_comment": "solid or gradient",
"type": "gradient",
"from": {
"h": 270, "s": 30, "l": 30
},
"to": {
"h": 288, "s": 30, "l": 40
}
}
},

"eyes": {"r": 0, "g": 0, "b": 0, "a": 255}
},
"events": {
"generic": [
{
"event": "playerEnter",
"random": true,
"hold": 5,
"gravity": 0.8,
"sound": "SS_AI_Exit_Work_Mode",
"moveTo": {"x": 241, "y": 244},
"texts": ["Hello <PlayerName>!"],
"color": {"r": 255, "g": 0, "b": 255, "a": 255},
"action": "giveMark",
"screens": [
{
"image": "aiimg1_dm",
"hold": 80,
"alpha": 200,
"pos": {"x": 370, "y": 300},
"moveSpeed": 0
},
{
"hold": 50,
"alpha": 200,
"pos": {"x": 370, "y": 200},
"moveSpeed": 50
},
{
"image": "AIimg5b",
"hold": 80,
"alpha": 200,
"pos": {"x": 370, "y": 200},
"moveSpeed": 0
}
]
},
{
"event": "playerEnter",
"action": "startPlayerConversation",
"movement": "investigate",
"score": {
"action": "set",
"amount": 17
}
},
{
"event": "afterGiveMark",
"texts": [". . .", "Are you recieving this?", "This shows for all players first!"],
"score": {
"action": "set",
"amount": 17
}
},
{
"event": "afterGiveMark",
"for": ["Red"],
"texts": ["This is only avalible for red!"],
"action": "giveKarma",
"actionParam": 9
},
{
"event": "afterGiveMark",
"for": ["Red"],
"texts": ["This is only avalible for red!"]
},
{
"event": "afterGiveMark",
"action": "startPlayerConversation"
},
{
"event": "playerConversation",
"hold": 4,
"movement": "talk",
"texts": [
"This is the main dialog informing the player what to do.",
"This occurs if they player already has the mark."
]
},
{
"event": "noeventy",
"action": "kickPlayerOut",
"gravity": 0,
"actionParam": "RI_C10"
},
{
"event": "playerAttack",
"random": true,
"texts": ["Stop that!", "STOP.", "DONT."],
"score": {
"action": "subtract",
"amount": 10
}
},
{
"event": "oracleAnnoyed",
"random": true,
"movement": "keepDistance",
"texts": ["This shows when the oracle is mad at the player!", "LEAVE.", "GET OUT."],
"action": "kickPlayerOut",
"actionParam": "RI_C10"
},
{
"event": "oracleAngry",
"texts": ["GET OUT!"],
"movement": "keepDistance",
"action": "killPlayer"
}
],
"pearls": [
{
"item": "CC",
"text": "this is a pearl dialog! for CC"
},
{
"item": "Misc",
"texts": ["This is where the white pearl dialogs go."]
}
],
"items": [
{
"item": "KarmaFlower",
"text": "Be careful!"
}
]
}



}
]
King of Fire105 29 Dec, 2023 @ 9:32am 
Why isn't my Iterator showing up! And why do I need to enter and exit game to change things on file?

[
{
"id": "DF",
"roomId": "DF_AI",
"airFriction": 0.99,
"annoyedScore": 15,
"angryScore": 0,
"talkHeight": 0,
"pearlFallback": "pastMoon",
"startPos": {
"x": 9,
"y": 32
},
"roomEffects": {
"pearls": "pebbles"
},
"cornerPositions": [
{"x": 9, "y": 32},
{"x": 38, "y": 32},
{"x": 38, "y": 3},
{"x": 10, "y": 3}
],
"body": {
"oracleColor": {
"r": 255, "g": 0, "b": 0
},
"halo": {
"innerRing": {"r": 255, "g": 0, "b": 0}
"outerRing": {"r": 0, "g": 255, "b": 0}
}
"arm": {
"armColor": {"r": 255, "g": 0, "b": 0},
"armHighlight": {"r": 255, "g": 0, "b": 0}
},
"gown": {
"color": {
"type": "solid",
"r": 255, "g": 166, "b": 50
}
},
"sigil": {
"r": 255, "g": 0, "b": 0,
"sprite": "sunSigil"
},
"eyes": {"r": 0, "g": 0, "b": 0}
},
},
"events": {
"generic": [
{
"event": "playerEnter",
"random": true,
"gravity": 1,
"sound": "SS_AI_Exit_Work_Mode",
"moveTo": {"x": 241, "y": 244},
"texts": ["Hi <PlayerName>. Or should I say. ME!", "Is this reaching you by chance?", "Anyways let me configure this real quick.."],
"color": {"r": 255, "g": 0, "b": 255, "a": 255},
"action": "giveMark",
"screens": [
{
"image": "aiimg1_dm",
"hold": 80,
"alpha": 200,
"pos": {"x": 370, "y": 300},
"moveSpeed": 0
}
]
},
{
"event": "afterGiveMark",
"texts": [". . .", "Are you understanding me?", "If not then I'm sorry about that, oh well!", "It's nice to finally be able to talk to someone after these past cycles.", "It's getting worse, ya know."],
"score": {
"action": "set",
"amount": 17
}
},
{
"event": "afterGiveMark",
"for": ["Red"],
"texts": ["This is only avalible for red!"]
},
{
"event": "afterGiveMark",
"action": "startPlayerConversation"
},
{
"event": "playerConversation",
"hold": 4,
"movement": "talk",
"texts": [
"Talking is a mess.", "Please wait on standby for further instructions.",
"This occurs if they player already has the mark."
]
},
{
"event": "playerConversation",
"gravity": 0
},
{
"event": "noeventy",
"action": "kickPlayerOut",
"gravity": 0,
"actionParam": "DF_ROOF05"
},
{
"event": "playerAttack",
"random": true,
"texts": ["Hey, quit that!", "I order you to stop that!", "KNOCKITOFF!!"],
"gravity": 1,
"score": {
"action": "subtract",
"amount": 3
}
},
{
"event": "oracleAnnoyed",
"random": true,
"movement": "keepDistance",
"texts": ["This shows when the oracle is mad at the player!", "LEAVE.", "GET OUT."],
"action": "subtract",
"amount": 5
},
{
"event": "oracleAngry",
"texts": ["ENOUGH!"],
"action": "kickPlayerOut",
"actionParam": "DF_ROOF05"
}
],
"pearls": [
{
"item": "CC",
"text": "Shall I explain this to you?"
},
{
"item": "Misc",
"texts": [A pearl that has faded in time.. Strange.."]
}
],
"items": [
{
"item": "KarmaFlower",
"text": "Strange, that flower has interesting properties, heck, eating one protects your cycle, it's fascinating, isn't it?"
}
]
},
"overseers": {
"color": {"r": 153, "g": 0, "b": 255},
"regions": ["OE"],
"guideToRoom": "DF_AI",
"genMin": 0, "genMax": 100
}

},
}
]

}





},
{
"id": "Artificer",
"for": ["Artificer"],
"events": {
"generic": [
{
"event": "playerEnter",
"texts": ["You've been to have been to Five Pebbles haven't you?", " . . . ", "He sent someone to destroy and take away of more that I love!", "Leave at once!", "You Red Devil from Hell!"],
"action": "kickPlayerOut"
}
]
}
}

]
Cannoli 21 Jan, 2024 @ 11:23am 
Originally posted by TheNotSoGood Gamer:
Check through the github repo, there's a sample iterator mod with correctly formatted oracle code with everything you would need.
bit late but my file (oracle.json in the mods folder) which has the exact same code from the page doesnt seem to be working at all, ive tried changing the spawn rooms and stuff but its still not showing up
King of Fire105 22 Jan, 2024 @ 6:00pm 
Originally posted by Silus:
Originally posted by TheNotSoGood Gamer:
Check through the github repo, there's a sample iterator mod with correctly formatted oracle code with everything you would need.
bit late but my file (oracle.json in the mods folder) which has the exact same code from the page doesnt seem to be working at all, ive tried changing the spawn rooms and stuff but its still not showing up
Oh yeah I tried the sample, it sucks! I know that's blunt but my game threw a fit over it showing cursed screens that's very odd and problematic for making an Iterator.
Last edited by King of Fire105; 22 Jan, 2024 @ 6:01pm
Gray 29 Mar, 2024 @ 2:02pm 
Originally posted by TheNotSoGood Gamer:
Check through the github repo, there's a sample iterator mod with correctly formatted oracle code with everything you would need.
I don't see it
King of Fire105 30 Mar, 2024 @ 1:40pm 
Originally posted by Mysterious?:
Originally posted by TheNotSoGood Gamer:
Check through the github repo, there's a sample iterator mod with correctly formatted oracle code with everything you would need.
I don't see it
Yeah I checked an I never saw it either.. Anyone know where it went??
Gray 30 Mar, 2024 @ 7:57pm 
Originally posted by King of Fire105:
Originally posted by Mysterious?:
I don't see it
Yeah I checked an I never saw it either.. Anyone know where it went??
I found it in the docs section but I ran into a lot of issues with it, it seems very out of date so I decided to stop using it and just figure it out myself. Because the developer no longer responds on here and only github, I think you or somebody else should let him know that the samplemod may not be working properly. (I don't have a github account)
King of Fire105 1 Apr, 2024 @ 4:13pm 
Originally posted by Mysterious?:
Originally posted by King of Fire105:
Yeah I checked an I never saw it either.. Anyone know where it went??
I found it in the docs section but I ran into a lot of issues with it, it seems very out of date so I decided to stop using it and just figure it out myself. Because the developer no longer responds on here and only github, I think you or somebody else should let him know that the samplemod may not be working properly. (I don't have a github account)
Oh, thank you. I shall tell them about it then.
< >
Showing 1-15 of 15 comments
Per page: 1530 50