请选择 进入手机版 | 继续访问电脑版

中国星际RPG联盟

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5527|回复: 1

教程:ICE的基础用法与Offset的基础知识

[复制链接]
发表于 2013-8-23 23:58:52 | 显示全部楼层 |阅读模式
Viewing Tutorial: Basic ICE Usage and Offset Basics
教程:ICE的基础用法与Offset的基础知识

by nirvanajung
作者:nirvanajung

1. basic knowhow for before the beginning
1。关于开始前的准备的基础知识

first , running Ice and start load custom isript.bin files or load Default file on File menus of Ice
首先,运行ice然后在ice菜单载入isript.bin文件或读取默认文件

then u can start scripting now~!
那么你就可以开始编译了

select unit in Header taps or typing units id number what u want change thing and click to search by header btn
选择要编辑的单位或输入要编辑的单位的id数字

then u can see unit images in GRP prieview Tap
接着你就可以在GRP预览栏看单位的影像

u can see each offset numbers of headers in Entry Header tap that number is what header used that scripts contents
你可以看到Entry Header栏看到offset numbers of headers即header用的脚本的代码

so if u change offset number then that header action's scripts will change to that numbers script
所以如果你更改offset代码那么对应的header的脚本就会变成对应代码的

2. way to change and goto offset
2。更改offset

ok, i will explain to an example is "Terran marines" in this section
OK,我会在这节用Terran marines为例子解释

goto "Animation Scripts" tap and are there many animaitons headers
去Animation Scripts栏可以看到那里有很多animaitons headers

that animations exist each offset numbers
那些animations中存在很多offset代码

u can see find that numbers on "script offset" line that position of layout is lower of right side
你能在右侧看到script offset的脚本代码

ok first , choose "Initial Animation" in Animations drop down list
OK 首先,在Animations下拉栏选择Initial Animation

each code line has own offset number too like animation headers can find that number on "op Offset:" line
每条code line都有他单独的offset代码让像animation headers的能在op Offset:线上找到它

let's see the " Terran marine's Initial Animation"
我们来看看Terran marine的Initial Animation值

  1. CODE
  2. place active underlay [images.dat] 240 at vertical offset 0
  3. play frame 68
  4. wait either 63 or 75 ticks [random]
  5. using randomizer value[?] 25 , jump to offset 28964
  6. using randomizer value[?] 128 , jump to offset 28942
  7. Go to offset 28928
复制代码


u can find three offset codes in here that offset codes deferent operation to eachother but both action will be goto other offse
你能在这里找到三个不同的offset codes

check offset codes in scripts contents
在offset codes内检查脚本内容

"jump to offset 28964" -> this will go to other animations at randomly , ramdom time is values number -> "value[?] 25 "
"jump to offset 28964" -> 这会随即跳到别的animations, 随即时间就是values数码 -> "value[?] 25 "

and if u want find that offset number where are going ?
你是否要找到下一个offset代码的项

typing that number "28964" in "Goto offset" input box and click "goto" btn
在Goto offset栏中输入 "28964"然后点击"goto"按钮
then u can see changed srcipt contents and find changed number "28964" on "scripts offset" line
那么你就能看到改了的脚本内容然后能在scripts offset线上找到28964

that mean is srcipt offset goto one after the other codes must exist where are going next offset code or finishing operation codes
这个意思是offset脚本进入到另一个代码需要有下一个offset代码或完成的operation代码

let's see other offset codes at last line
我们来看看最后一列的其他offset代码

"Go to offset 28928" -> this code mean is where are going next animation when this script action finished
"Go to offset 28928" -> 这个代码的意思就是完成了这个脚本动作后的下一个animation

and u can go that offset directly, select that code line and just double click
你能直接地去到那个offset 选择代码线然后双击

then u can jump to that offset
接着你就能跳到那个offset

"Go to offset" operation always can jump by that ways
"Go to offset" 动作总能这样子跳

if u want change jump offset ? then select offset number area and click one time,
如果你想跳到指定offset 那么选择offset代码然后单击

then number color be changes other color and u can edit that number
然后代码的颜色变成另一种颜色 你就可以编辑那个代码了

Remember, offset number is linked animations contents so u may write number without error in animation
记住,offset代码是与animation内容联系的所以在编辑代码时不能在animation出现错误

( this mean is that unit must be can running all operation codes with changed offset)
(这个的意思就是那个单位一定要能在所有的代码中运行)

see "Go to offset 28928" again,
重新看"Go to offset 28928"

and double click that line and jump to that offset
双击那条线然后飞到那个offset

then scripts change showed that deleted upper codes some lines as compared with Initial Animation
然后删除掉顶端的几行代码脚本就会和之前的animation作比较

that is "Other" header in IceCC (when unit has not doing anything action for a while)
那就是在IceCC里的"Other" header (当单位在一下子什么动作都不干)

if u want change that scripts codes then u edit codes ur self firsthand
如果你想在更改代码时也更改脚本代码

or otherway is goto "Entry Header" tap and change Initial Animation
或其他方法就是进入 "Entry Header" 栏然后更改初始animation的值

section's number as other unit's "Initial Animation" offset number such as zealots etc...
节的代码和其他单位的"Initial Animation"offset代码 比如 zealots等等

累死了~~终于搞完了~~俄。。。全手工翻译。。。累死了
回复

使用道具 举报

 楼主| 发表于 2013-8-24 01:27:41 | 显示全部楼层

Re:教程:ICE的基础用法与Offset的基础知识

the way is click [...] like this button and popup "Set Animation windows"
方法就是点击[...]这样的按钮

popup "Set Animation windows" (popue不知道是什么 查无此词)

select units header as u want things and select that's animations too , click to [ok] button
选择你想要的单位的header然后选择它的animations,点击[ok]按钮和"Initial Animation"offset代码

then "Initial Animation" offset number be changed and u can see changed operations codes in srcipts contents box of Animation Scripts Taps
然后"Initial Animation" offset代码会改变然后你能在Animation Scripts栏的脚本内容栏看到改变的operation代码

Remember again, u may write offset number without error , this is very important about crash game
记住,你不能在写offset代码的时候出现错误,这是很重要的一点,否则就会crash

if changed operation code be can not running for Terran Marines (such as "unable play frames number" or written wrong id numbers)
如果更改offset代码Terran Marines可能无法运行(比如"unable play frames number"或写入错误id代码)

3. randomizing functions in scripts
3。脚本的随机功能

this section is about how can add new operation codes
这一节告诉你如何添加新的operation代码

goto Animation Scripts tap
进入animation脚本栏

and u can see a lot of buttons, input box and contents area form
你可以看到很多的按钮 输入栏和内容

1 . Animation [...........................................] (dropdown list)
1。animation [...........................................] (下拉栏)

this is showed about unit what has animation headers
这里显示了单位的animation headers

recorded animations is linked to situation of "Entry Header" setting
记录了与animations有关系的"Entry Header"设置

if each Entry Header item be registered then showed that animations in Animation dropdown list
如果每个 Entry Header 项都被注册就会在Animation下拉栏显示对应的animations

2. scripts contents form box
2。脚本内容栏

this box is showed what header written a operation codes
这个栏显示header的operation代码

and u can edit the value each opcodes , copy paste and delete code too
你能够在每个opcodes编辑这些value,拷贝和删除代码

3.command buttons
3。命令按钮

there are many command buttons , this buttton will creat new code and command other operation
这里有很多命令按钮,这个按钮会创建很多新的代码和命令其它operation

----------
buttons
----------

[New] - > this is write new operation code in Scripts lines
[New] - > 这是在脚本线上写新的operation代码

click that and popup "New Opcode" windows and select opcodes as u wanna write things and click to [ok] then created line and new code in Scripts contents form
点击然后popup "New Opcode"窗口然后选择选择你想写东西的opcodes然后点击[ok]接着新建线和新的代码

[copy] -> copy to selected line codes
[copy] -> 拷贝到选择的代码线上

[paste] -> paste codes (there are some bug in ice u may click twowise at first time)
[paste] -> 粘贴代码 (如果双击的话可能会在ice里面导致bug)

[up] -> selected codes is move up one line
[up] -> 选择的代码会上移一行

[jump] -> scripts header jump to selected offset codes
[jump] -> 脚本header跳到选择offset代码

[Delete] -> Delete code line
[delete] -> 删除代码行

[Cut] -> same to Del
[cut] -> 和删除一样

[Hex] -> Hex edit
[hex] -> 16进制编辑

[Down] -> selected codes is move down one line
[Down] -> 选择的代码下移一行

[Back] -> go to offset ago
[Back] -> 去到上一个offset

4.Offset search area
4。offset搜索区域

in lower of right side , u can see search offset area
你可以在右下角看到offset搜索区域

----------------------------------

Goto Offset [ ] [Goto] -> this is search offset written numbers
Goto offset [] [Goto] -> 这是查找offset代码的

Script Offset : -> this is showed current Animation header's offset number
Script offset : -> 这是显示当前animation的offset代码的

Op Offset : this is showed current operation code's offset number
OP Offset : 这是察看当前operation代码的offset代码

Detail of [New] button jump to popup "New Opcode" windows
关于[New]按钮飞到popue"new opcode"窗口

if u want write new operation code like "play frame 17" then u may click [New] btn
如果你想写新的operation代码比如"play frame 17"那么你就要点击[New]按钮

and choose that opcode in opcoed drop-down list and change frame number value
然后在opcode下拉菜单选择opcode然后更改frame代码数据

All operation codes are be writed like that ways
所有的operation代码都要像这样字写

i can't explain now about each opcodes because u can find and search out that opcodes meaning with original scripts of other units
我现在不能给你解释每个opcodes因为你能用其他单位的原来的脚本来认识这个opcodes

ok, this tutorial is not rub a person the right way and my english not good i know that plz understand me ~!
ok 这个叫成不是用一个正确的方法去教一个人 而且我的英语很差!不过我知道plz能懂

anyway i hope this tut help to beginner Ice
总之我希望这能帮助ice的初学者~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|网站统计|手机版|小黑屋|中国星际RPG联盟    

GMT+8, 2024-3-29 18:37 , Processed in 1.265617 second(s), 20 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表