test json

This commit is contained in:
syui 2024-12-21 13:45:04 +09:00
parent 721e3345c9
commit f815280e08
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
5 changed files with 665 additions and 487 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 KiB

View File

@ -1,6 +1,7 @@
# yui
[aiverse](https://git.syui.ai/ai/ue/wiki/verse) project.
- [aiverse](https://git.syui.ai/ai/ue/wiki/project) project
- [aiue](https://git.syui.ai/ai/ue/wiki/system) system
## log

View File

@ -1,5 +1,43 @@
#!/bin/zsh
handle_yui=yui.syui.ai
handle_syui=syui.ai
did_yui=did:plc:4hqjfn7m6n5hno3doamuhgef
did_syui=did:plc:uqzpqmrjnptsxezjx4xuh2mn
token_yui=`cat ~/.config/ai/token.json|jq -r .accessJwt`
host=bsky.social
created=2001-01-01T00:00:00+09:00
character=(
ai
manny
quinn
chinese
kirin
leviathan
phoenix
wyvern
cerberus
dragon
kitsune
pegasus
)
img=(
bafkreie34pjuc6coenzcdwrgrh4fbacq7bkhsz263g5vpbsqxwaz37kkwy
bafkreie34pjuc6coenzcdwrgrh4fbacq7bkhsz263g5vpbsqxwaz37kkwy
bafkreie34pjuc6coenzcdwrgrh4fbacq7bkhsz263g5vpbsqxwaz37kkwy
bafkreidlealfybajqzwv5eoz4jshnsijc2vnktlhpw4ph47krwj6aigqby
bafkreiegpqedlrfa4ljhssdnkrr5hyd5huy2xhh2zszj5wq2wuuzejggmq
bafkreig6vszkx3c4dcortjwfsz6sa6zwqgj7zpxj4lxfrrkwql4xhiu5ou
bafkreich7fsumke2yvumvixkruonzrcevk3f6g2cntzfwdn4n2c2vox5dm
bafkreiacjvagsekhiiljz3j237b6klrt6pkptxljt7kltprgg5276gv25q
bafkreihpni4lp55jysalcntulzal5rbhidtbseanlucpyucagzxmv6xj24
bafkreia3huw2gdenqatoobx3hcft74chced46bw4znfgepo5aenegobkri
bafkreidy74aieb6ie646xhosginox5zbnbnrtd76cnt4pbn73hrxgfnple
bafkreifnbfj27fr6nv7qeqqmwdibf7qrw4lauvzoknw5hexbifmwqt6kmq
)
function download_character_icon(){
t=(
@ -38,10 +76,7 @@ for i in $t; do
done
}
handle_yui=yui.syui.ai
did_yui=did:plc:4hqjfn7m6n5hno3doamuhgef
token_yui=`cat ~/.config/ai/token.json|jq -r .accessJwt`
host=bsky.social
case $OSTYPE in
darwin*)
@ -164,6 +199,108 @@ json="{
}
#download_character_icon
create_game_character
function ai_create_user() {
col=ai.syui.game.user
rkey=ai
did=$did_yui
handle=$handle_yui
#rkey=syui
#img=https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:4hqjfn7m6n5hno3doamuhgef/bafkreie34pjuc6coenzcdwrgrh4fbacq7bkhsz263g5vpbsqxwaz37kkwy@jpeg
req=com.atproto.repo.putRecord
url=https://$host/xrpc/$req
for ((i=1; i<=${#character}; i++)); do
cname=${character[$i]}
cid=${img[$i]}
imguri=https://cdn.bsky.app/img/feed_thumbnail/plain/$did_yui/${cid}@jpeg
echo $imguri
echo $i $character $cname
season=1
group=test
lv=1
hp=100
exp=0
rank=0
mode=0
attack=0
attack_post=0
critical=0
critical_d=0
case $cname in
ai)
group=origin
season=0
mode=2
;;
manny|quinn)
group=test
;;
*)
group=fantasy
;;
esac
jc="\"$cname\": { \"group\": \"$group\", \"season\": $season, \"img\": \"$imguri\", \"lv\": $lv, \"exp\": $exp, \"hp\": $hp, \"rank\": $rank, \"mode\": $mode, \"attack\": $attack, \"attack_post\": $attack_post, \"critical\": $critical, \"critical_d\": $critical_d }"
if [ $#character -ne $i ];then
jc=${jc},
fi
json=${json}${jc}
done
json="
{
\"repo\": \"$handle_yui\",
\"did\": \"$did_yui\",
\"collection\": \"$col\",
\"rkey\": \"$rkey\",
\"record\": {
\"did\": \"$did\",
\"limit\": false,
\"login\": false,
\"handle\": \"$handle\",
\"aiten\": 10,
\"gender\": \"famale\",
\"character\": {
$json
},
\"createdAt\": \"${created}\",
\"updatedAt\": \"${created}\"
}
}"
if echo $json|jq . ;then
echo $token_yui
curl -sL -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token_yui" -d $json $url
fi
col=ai.syui.game
rkey=self
at_uri=at://did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.game.user/ai
json="
{
\"repo\": \"$handle_yui\",
\"did\": \"$did_yui\",
\"collection\": \"$col\",
\"rkey\": \"$rkey\",
\"record\": {
\"account\": \"$at_uri\",
\"username\": \"ai\",
\"createdAt\": \"$created\"
}
}"
if echo $json|jq . ;then
# curl -sL -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token_yui" -d $json $url
fi
}
#download_character_icon
#create_game_character
ai_create_user

442
ue.json
View File

@ -1,39 +1,219 @@
{
"aiue": {
"name": "aiue",
"description": "aiue system",
"repo": "https://git.syui.ai/ai/ue",
"ref": "https://git.syui.ai/ai/ue/wiki/system",
"body": {
"text": "[ai] [u]nreal [e]ngine, game naming conventions, character attribute",
"text": "[ai] [u]nreal [e]ngine, system overview, game naming conventions",
"lang": {
"ja": "ai Unreal Engine, システムの概要, ゲームの命名規則"
}
},
"lexicon": {
"ai.syui.game": {
"uri": "https://git.syui.ai/ai/ue/src/branch/main/lexicons/ai/syui/game.json"
},
"ai.syui.game.user": {
"uri": "https://git.syui.ai/ai/ue/src/branch/main/lexicons/ai/syui/game/user.json"
},
"ai.syui.game.character": {
"uri": "https://git.syui.ai/ai/ue/src/branch/main/lexicons/ai/syui/game/character.json"
}
},
"system": {
"enum": [
"character",
"atmosphere",
"universe"
],
"atmosphere": {
"name": "atmosphere",
"repo": "https://github.com/bluesky-social/atproto",
"uri": "https://atproto.com/ja/guides/glossary",
"ref": "https://en.wikipedia.org/wiki/atmosphere_of_earth",
"lang": {
"ja": "大気圏"
},
"exoshere": {
"name": "exo",
"lang": {
"ja": "外気圏"
},
"km": [
{
"min": 700,
"max": 10000
}
],
"enum": [
"universe"
]
},
"thermoshere": {
"name": "thermo",
"lang": {
"ja": "熱圏"
},
"km": [
{
"min": 80,
"max": 700
}
],
"enum": [
"aurora"
]
},
"mesoshere": {
"name": "meso",
"lang": {
"ja": "中間圏"
},
"km": [
{
"min": 50,
"max": 80
}
],
"enum": [
"meteor",
"plc"
],
"plc": {
"name": "plc",
"repo": "https://github.com/did-method-plc/did-method-plc/tree/main/packages/server",
"tag": [
"did"
]
}
},
"stratoshere": {
"name": "strato",
"lang": {
"ja": "成層圏"
},
"km": [
{
"min": 12,
"max": 50
}
],
"enum": [
"ozone",
"bigsky"
],
"bigsky": {
"name": "bgs",
"service": [
{
"name": "bgs",
"repo": "https://github.com/bluesky-social/indigo/tree/main/cmd/bigsky"
}
]
},
"ozone": {
"service": [
{
"name": "ozone",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/ozone"
}
]
}
},
"troposhere": {
"name": "tropo",
"lang": {
"ja": "対流圏"
},
"km": [
{
"min": 0,
"max": 12
}
],
"enum": [
"bluesky"
],
"bluesky": {
"name": "bsky",
"service": [
{
"name": "pds",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/pds"
},
{
"name": "bsky",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/bsky",
"tag": [
"api",
"appview"
]
},
{
"name": "bsync",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/bsync"
},
{
"name": "social-app",
"repo": "https://github.com/bluesky-social/social-app",
"tag": [
"web"
]
},
{
"name": "oauth",
"repo": "https://github.com/bluesky-social/cookbook/tree/main/python-oauth-web-app"
},
{
"name": "feed",
"repo": "https://github.com/bluesky-social/feed-generator"
},
{
"name": "stream",
"repo": "https://github.com/bluesky-social/jetstream"
}
]
}
}
},
"character": {
"body": {
"text": "character system is the core of this game",
"lang": {
"ja": "キャラクターシステムはこのゲームの核。yui, evolution, attributeの3つのシステムで構成される"
}
},
"enum": [
"yui",
"mode",
"attribute"
"evolution",
"attribute",
"status"
],
"status": {
"name": "status",
"body": {
"text": "the status system determines the overall status of the character",
"lang": {
"ja": "ステータスシステムはキャラクター全般のステータスを規定する"
}
}
},
"yui": {
"body": {
"text": "a yui system that aims to guarantee uniqueness for characters",
"text": "yui system that aims to guarantee uniqueness for characters",
"lang": {
"ja": "キャラクターに唯一性の担保を目指す唯システム"
"ja": "キャラクターに唯一性の担保を目指す唯システム"
}
},
"rule": {
"text": "characters are divided into groups. groups change with each season. they do not return to the previous season. the number of pickups starts at 1, and when it reaches 0, the chance to get that character disappears.",
"lang": {
"ja": "キャラクターはグループに分けられる。グループはシーズンで移行する。前シーズンに戻ることはない。ピックアップ数は1から始まり0になるとそのキャラクターを手に入れる機会は消滅する"
"ja": "キャラクターはグループに分けられる。グループはシーズンで移行する。前シーズンに戻ることはない。ピックアップ数は1から始まり0になると手に入れる機会が消滅"
}
}
},
"mode": {
"evolution": {
"enum": [
"animal",
"human",
@ -42,7 +222,7 @@
"body": {
"text": "each character has three stages of evolution",
"lang": {
"ja": "1キャラクターにつき3段階の進化がある"
"ja": "1キャラクターにつき3段階の進化[変身]がある"
}
}
},
@ -57,18 +237,7 @@
"lang": {
"ja": "1キャラクターにつき1属性を持つ"
}
}
}
}
},
"enum": [
"ai",
"atom",
"molecule",
"atmosphere",
"universe",
"character"
],
"ai": {
"name": "ai",
"group": [
@ -224,153 +393,20 @@
"ja": "氷"
}
}
},
"atmosphere": {
"name": "atmo",
"lang": {
"ja": "大気圏"
},
"exoshere": {
"name": "exo",
"lang": {
"ja": "外気圏"
},
"km": [
{
"min": 700,
"max": 10000
}
],
"enum": [
"universe"
]
},
"thermoshere": {
"name": "thermo",
"lang": {
"ja": "熱圏"
},
"km": [
{
"min": 80,
"max": 700
}
],
"enum": [
"aurora"
]
},
"mesoshere": {
"name": "meso",
"lang": {
"ja": "中間圏"
},
"km": [
{
"min": 50,
"max": 80
}
],
"enum": [
"meteor"
]
},
"stratoshere": {
"name": "strato",
"lang": {
"ja": "成層圏"
},
"km": [
{
"min": 12,
"max": 50
}
],
"enum": [
"ozone"
]
},
"troposhere": {
"name": "tropo",
"lang": {
"ja": "対流圏"
},
"km": [
{
"min": 0,
"max": 12
}
],
"enum": [
"sky"
]
},
"account": {
"name": "at",
"body": {
"text": "at protocol",
"lang": {
"ja": "アット プロトコル"
}
},
"repo": "https://github.com/bluesky-social/atproto",
"uri": "https://atproto.com/ja/guides/glossary",
"service": [
{
"name": "pds",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/pds"
},
{
"name": "bsky",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/bsky",
"tag": [
"api",
"appview"
]
},
{
"name": "bsync",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/bsync"
},
{
"name": "ozone",
"repo": "https://github.com/bluesky-social/atproto/tree/main/services/ozone"
},
{
"name": "bgs",
"repo": "https://github.com/bluesky-social/indigo/tree/main/cmd/bigsky"
},
{
"name": "plc",
"repo": "https://github.com/did-method-plc/did-method-plc/tree/main/packages/server",
"tag": [
"did"
]
},
{
"name": "social-app",
"repo": "https://github.com/bluesky-social/social-app",
"tag": [
"web"
]
},
{
"name": "oauth",
"repo": "https://github.com/bluesky-social/cookbook/tree/main/python-oauth-web-app"
},
{
"name": "feed",
"repo": "https://github.com/bluesky-social/feed-generator"
},
{
"name": "stream",
"repo": "https://github.com/bluesky-social/jetstream"
}
]
},
"ref": "https://en.wikipedia.org/wiki/atmosphere_of_earth"
},
"universe": {
"name": "universe",
"lang": {
"ja": "宇宙"
},
"body": {
"text": "mainly the map (level) system, aim to reflect reality. create as many invisible and inaccessible areas as possible",
"lang": {
"ja": "主にマップ(レベル)のシステム。現実の反映を目指す。できる限り見えない部分、行けない場所を作る"
}
},
"system": {
"enum": [
"choices",
@ -384,10 +420,6 @@
}
}
},
"name": "world",
"lang": {
"ja": "世界"
},
"uri": "https://eyes.nasa.gov/apps/solar-system",
"ref": "https://en.wikipedia.org/wiki/universe",
"enum": [
@ -428,7 +460,7 @@
"lang": {
"ja": "太陽"
},
"mass": 333000.01
"mass": 333000.0
},
"mars": {
"name": "mars",
@ -502,10 +534,6 @@
"enum": [
"milkyway",
"andromeda",
"bode",
"cigar",
"whirlpool",
"cartwheel",
"ringnebula"
],
"milkyway": {
@ -520,30 +548,6 @@
"ja": "アンドロメダ"
}
},
"bode": {
"name": "bode's",
"lang": {
"ja": "ボーデ"
}
},
"cigar": {
"name": "cigar",
"lang": {
"ja": "葉巻"
}
},
"whirlpool": {
"name": "whirlpool",
"lang": {
"ja": "子持ち"
}
},
"cartwheel": {
"name": "cartwheel",
"lang": {
"ja": "車輪"
}
},
"ringnebula": {
"name": "ringnebula",
"lang": {
@ -552,6 +556,7 @@
}
}
}
}
},
"character": {
"ref": "https://git.syui.ai/ai/ue/src/branch/main/lexicons/ai/syui/game/user.json",
@ -559,9 +564,9 @@
"ja": "キャラクター"
},
"body": {
"text": "each player is assigned one character. each character has one attribute. the attribute is determined by the group [origin, fantasy, animal...]. the character evolves into [animal, human, divinity]. as the season changes, new groups are added and the assigned characters change.",
"text": "character status, groups, attributes, etc.",
"lang": {
"ja": "プレイヤーには1キャラクターが割り当てられます。キャラクターは1つの属性を持ちます。グループ[オリジン、ファンタジー、アニマル...]によって属性が決まります。キャラクターは[動物、人間、神性]へと進化します。シーズンが移行すると新しいグループが追加され、割り当てられるキャラクターが変化していきます"
"ja": "キャラクターのステータス、グループ、属性など"
}
},
"enum": [
@ -587,15 +592,24 @@
"lang": {
"ja": "アイ"
},
"body": {
"text": "ai age and origin are unknown. she is described as having lived longer than a dragon. she calls herself ai. she is registered in the government system as [tsukimi yui] her birthday is 01/23, and she is also the same height. this is a reference to the mass of the moon. she has black hair and black eyes. she likes pineapples and dislikes mushrooms.",
"lang": {
"ja": "年齢や出身は不明。ドラゴンより長く生きているという描写がある。自らをアイと名乗る。政府のシステムには[月見唯(つきみゆい)]で登録されている。誕生日は01/23、身長も同じ。月の質量が由来。黒髪、黒い瞳をしている。パイナップルが好物でキコが苦手"
}
},
"img": "bafkreie34pjuc6coenzcdwrgrh4fbacq7bkhsz263g5vpbsqxwaz37kkwy",
"season": 0,
"group": "origin",
"attribute": "ai"
"attribute": "ai",
"day": "0123"
},
"manny": {
"lang": {
"ja": "マニー"
},
"season": 0,
"img": "bafkreie34pjuc6coenzcdwrgrh4fbacq7bkhsz263g5vpbsqxwaz37kkwy",
"season": 1,
"group": "test",
"attribute": "test"
},
@ -603,7 +617,8 @@
"lang": {
"ja": "クイーン"
},
"season": 0,
"img": "bafkreie34pjuc6coenzcdwrgrh4fbacq7bkhsz263g5vpbsqxwaz37kkwy",
"season": 1,
"group": "test",
"attribute": "test"
},
@ -611,6 +626,7 @@
"lang": {
"ja": "シンリュウ"
},
"img": "bafkreidlealfybajqzwv5eoz4jshnsijc2vnktlhpw4ph47krwj6aigqby",
"season": 1,
"group": "fantasy",
"attribute": "quark"
@ -619,6 +635,7 @@
"lang": {
"ja": "フェニックス"
},
"img": "bafkreich7fsumke2yvumvixkruonzrcevk3f6g2cntzfwdn4n2c2vox5dm",
"season": 1,
"group": "fantasy",
"attribute": "proton"
@ -627,6 +644,7 @@
"lang": {
"ja": "キリン"
},
"img": "bafkreiegpqedlrfa4ljhssdnkrr5hyd5huy2xhh2zszj5wq2wuuzejggmq",
"season": 1,
"group": "fantasy",
"attribute": "neutron"
@ -635,6 +653,7 @@
"lang": {
"ja": "リヴァイアサン"
},
"img": "bafkreig6vszkx3c4dcortjwfsz6sa6zwqgj7zpxj4lxfrrkwql4xhiu5ou",
"season": 1,
"group": "fantasy",
"attribute": "electron"
@ -643,6 +662,7 @@
"lang": {
"ja": "ワイバーン"
},
"img": "bafkreiacjvagsekhiiljz3j237b6klrt6pkptxljt7kltprgg5276gv25q",
"season": 1,
"group": "fantasy",
"attribute": "proton"
@ -651,6 +671,7 @@
"lang": {
"ja": "ケルベロス"
},
"img": "bafkreihpni4lp55jysalcntulzal5rbhidtbseanlucpyucagzxmv6xj24",
"season": 1,
"group": "fantasy",
"attribute": "atomic"
@ -659,14 +680,16 @@
"lang": {
"ja": "ドラゴン"
},
"img": "bafkreia3huw2gdenqatoobx3hcft74chced46bw4znfgepo5aenegobkri",
"season": 1,
"group": "fantasy",
"attribute": "atomic"
},
"kitsune": {
"lang": {
"ja": "ヨウコ"
"ja": "キュウビ"
},
"img": "bafkreidy74aieb6ie646xhosginox5zbnbnrtd76cnt4pbn73hrxgfnple",
"season": 1,
"group": "fantasy",
"attribute": "neutron"
@ -675,6 +698,7 @@
"lang": {
"ja": "ペガサス"
},
"img": "bafkreifnbfj27fr6nv7qeqqmwdibf7qrw4lauvzoknw5hexbifmwqt6kmq",
"season": 1,
"group": "fantasy",
"attribute": "electron"
@ -720,5 +744,21 @@
"attribute": "water"
}
}
},
"aiverse": {
"name": "aiverse",
"description": "aiverse project",
"repo": "https://git.syui.ai/ai/ue/src/branch/main/verse",
"ref": "https://git.syui.ai/ai/ue/wiki/project",
"body": {
"text": "ideas and philosophies when building a system. aiming to fuse games and reality",
"lang": {
"ja": "システムを構築する際の思想と哲学。ゲームと現実の融合を目指す"
}
},
"enum": [
"game",
"real"
]
}
}