雨世界

雨世界

Iterator Kit
eaflorio 2023 年 11 月 11 日 上午 7:31
Problems with coding the iterator
If certain things are formatted incorrectly, the whole thing breaks.
最后由 eaflorio 编辑于; 2023 年 11 月 11 日 下午 4:45
< >
正在显示第 1 - 15 条,共 15 条留言
suns_but_not_moons 2023 年 11 月 11 日 上午 8:36 
How do you even find out how to color it? I can't do it :(
eaflorio 2023 年 11 月 11 日 上午 11:58 
[
{
"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  [开发者] 2023 年 11 月 11 日 下午 2:10 
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 2023 年 11 月 11 日 下午 3:32 
引用自 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 2023 年 11 月 11 日 下午 4:46 
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"]
}
}
]
Best Gamer Ever 2023 年 11 月 12 日 上午 8:19 
Check through the github repo, there's a sample iterator mod with correctly formatted oracle code with everything you would need.
eaflorio 2023 年 11 月 12 日 下午 5:12 
引用自 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 2023 年 11 月 16 日 上午 9:14 
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 2023 年 12 月 29 日 上午 9:32 
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 2024 年 1 月 21 日 上午 11:23 
引用自 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 2024 年 1 月 22 日 下午 6:00 
引用自 Silus
引用自 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.
最后由 King of Fire105 编辑于; 2024 年 1 月 22 日 下午 6:01
Gray 2024 年 3 月 29 日 下午 2:02 
引用自 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 2024 年 3 月 30 日 下午 1:40 
引用自 Mysterious?
引用自 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 2024 年 3 月 30 日 下午 7:57 
引用自 King of Fire105
引用自 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 2024 年 4 月 1 日 下午 4:13 
引用自 Mysterious?
引用自 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.
< >
正在显示第 1 - 15 条,共 15 条留言
每页显示数: 1530 50