Empt1nessのブログ -19ページ目

Empt1nessのブログ

誰かに依存したいとか考えてました。
健全でいたいです。

私に何か求めたり何かすがろうとしても私は無視しますからね。
お互いのために距離は置きませんか。

sims4xmlのいじり方

 

sims4studioの使い方
sims4のxmlは、タグ構成で、htmlみたいな感じでできてます。
<タグ>内容</タグ>
って感じです。
この内容に入ってるものを取り出して、それをスクリプトが呼び出す感じです

 

こんな感じで動いてます。

この中のxmlは、packageっていうのに入ってます。

sims4studioではそれを出すことができます。

toolsから、Extract Tuningでいけます

ずらっと出てきて、

上のテキスト入力するところから、検索できます。

ためしに、tripleと検索して、achivementを入れてみましょう。

そうすると、Type SimDataのところにAchivement Tuningがでたことがわかります。

SimDataのTypeをDataタブで見ると、 (0x545AC67A)で、Achievementは、(0x78559E9E)だということがわかります。

じゃあxmlを見ると、まずxmlのエンコーディングの設定

<?xml version="1.0" encoding="utf-8"?> になってますね。

<I c="Achievement" i="achievement" m="achievements.achievement_tuning" n="SL_14_Triple_Play" s="33487">
  <L n="category">
    <T>10692<!--Sim_Feats--></T>
  </L>
  <T n="descriptive_text">0x6AADFF5<!--Have a Sim give birth to triplets.--></T>
  <T n="display_name">0xFFFF8E27<!--Triple Play--></T>
  <T n="icon" p="InGame\UI\Icons\Achievements\Achievement_TripplePlay.png">2f7d0004:00000000:e1b29bc4b3e69e43</T>
  <V n="notification" t="enabled">
    <U n="enabled">
      <V n="audio_sting" t="enabled">
        <U n="enabled">
          <T n="audio" p="InGame\Audio\Bumper\bumper_other_goal_complete.propx">39b2aa4a:00000000:ea1687e36b0b32f3</T>
        </U>
      </V>
      <E n="information_level">PLAYER</E>
    </U>
  </V>
  <L n="objectives">
    <T>33485<!--Triplets--></T>
  </L>
  <T n="pid">46</T>
  <T n="point_value">25</T>
  <V n="screen_slam" t="enabled">
    <V n="enabled" t="reference">
      <T n="reference">74997<!--SL_TriplePlay--></T>
    </V>
  </V>
  <T n="xid">49</T>
</I> 

となっています。

とりあえず今日は、ここで終わりにします。

xml extractorを使わない方法はこんな感じです。

ありがとうございました。