找回密码
 register

QQ登录

只需一步,快速开始

查看: 6367|回复: 16

[游戏教程] 聚义天龙:增加幻饰武器

[复制链接]

[游戏教程] 聚义天龙:增加幻饰武器

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:122
  • 打卡月天数:18
  • 打卡总奖励:121
  • 最近打卡:2025-02-22 14:24:44
Waylee

主题

0

回帖

1万

积分

仙帝

积分
14008
Waylee 2020-11-22 12:51 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
先把图标整上去:Interface\Schema\WoWLookSkin.scheme.xml
  <Imageset Name="DecorateWeapon1" Filename="Icons/DecorateWeapon1.imageset.xml" />


武器信息加到装备文件里:\tlbb\Public\Config\EquipBase.txt
10315004        1        1        2        104        0        1229        3        -1        -1        红郁金香        1        -1        紫郁金香,永恒爱恋的象征。#r#c00FF00此幻饰武器的装饰等级已满级。        4        4        215        3        3        -1        -1        DecorateWeapon1_4        幻饰武器        -1        1        1        1050        1050        -1        -1        -1        -1        1        1        -1        -1        -1        -1        1        -1        -1        1        -1        -1        1        -1        -1        1        -1        -1        -1        1        -1        -1        -1        -1        -1        -1        1        -1        -1        -1        -1        -1        -1        -1        -1        1        -1        1        -1        -1        -1        -1        -1        -1        1        -1        1        -1        1        -1        -1        -1        -1        -1        -1        -1        -1        -1        8        3308        13        13        126        250        -1        0        0        1        -1        -1                                

游客,如果您要查看本帖隐藏内容请回复

接下来你会发现武器是白色的呢:其实是all.material文件没有定义。我们加入dds贴图即可!
接下来你发出现一个全屏红的bug,还有英文字母出现:就是all.effect文件没有定义,我们加入特效才能解决。举个栗子:
effect 武器鲤鱼刀_五级
{
        element Particle
        {
                StartTime        0
                LifeTime        0
                Position        0 0 0
                Orientation        1 0 0 0
                ParticleSystem        武器鲤鱼刀_01
        }

        element Particle
        {
                StartTime        0
                LifeTime        0
                Position        0 20 0
                Orientation        1 0 0 0
                ParticleSystem        武器鲤鱼刀_02
        }

        element Particle
        {
                StartTime        0
                LifeTime        0
                Position        0 0 0
                Orientation        1 0 0 0
                ParticleSystem        武器鲤鱼刀_03
        }

        LifeTime        0
}
单纯加到这里,就会客户端报错,竟然连游戏都进不去啦,提示:
Cannot find required template '武器鲤鱼刀_01'. 

找不到模板,其实还要改造一下all.particle文件
武器鲤鱼刀_01
{
        quota 20

        material 武器鲤鱼刀_01

        particle_width 2

        particle_height 2

        cull_each false
        renderer billboard

        sorted false
        local_space true
        iteration_interval 0
        nonvisible_update_timeout 0
        billboard_type oriented_self

        billboard_origin center
        billboard_rotation_type texcoord

        common_direction 0 1 0
        common_up_vector 1 0 0
        point_rendering false
        accurate_facing false
        speed_relatived_size_factor 0.01

        emitter PolarEmitter
        {
        angle 0
        colour 1 1 1 1
        colour_range_start 1 1 1 1
        colour_range_end 1 1 1 1
        direction 0 1 0

        emission_rate 5
        position 0 0 0
        velocity 60

        velocity_min 60

        velocity_max 60

        time_to_live 2.5

        time_to_live_min 2

        time_to_live_max 2.5

        duration 0
        duration_min 0
        duration_max 0
        repeat_delay 0
        repeat_delay_min 0
        repeat_delay_max 0
        radius_start 2

        radius_step 0
        radius_end 2

        theta_start 10

        theta_step 60

        theta_end 0
        phi_start 0
        phi_step 0
        phi_end 0
        use_polar_step true
        flip_yz_axis false
        reset_radius_count 0
        reset_radius false
        }
        affector ColourFading
        {
                colour0 0 0 0 1
                time0 0
                colour1 0.501961 0 0 1

                time1 0.2

                colour2 0.709804 0 0 1

                time2 0.8

                colour3 0 0 0 1
                time3 1
                colour4 0.411765 0.839216 0.47451 1

                time4 1
                colour5 0.5 0.5 0.5 0

                time5 1
                repeat_times 1
                opacity 0.5

                fade_in_time 0
                fade_out_time 1

        }
        affector ScaleInterpolator
        {
                uniform_size true
                width_range_start 50

                width_range_end 50

                height_range_start 50

                height_range_end 50

                use_constant_scale false
                constant_scale 1 1 1
                use_interpolated_scale true
                scale0 5 10 10

                time0 0
                scale1 3 20 10

                time1 0.3

                scale2 5 30 10

                time2 0.8

                scale3 7 40 10

                time3 1
                scale4 1 1 1
                time4 1
                scale5 1 1 1
                time5 1
                repeat_times 1

        }
        affector Rotator
        {
                rotation_speed_range_start 60

                rotation_speed_range_end -60

                rotation_range_start -360

                rotation_range_end 360


        }
        affector Movement
        {
                use_start_velocity true
                start_velocity_min 0 60 3

                start_velocity_max 0 70 3

                acceleration 0 0 -5

                velocity_loss_min 0 0 0
                velocity_loss_max 0 0 0
                randomness_min 0 0 0
                randomness_max 0 0 0

        }

}






  • 打卡等级:热心大叔
  • 打卡总天数:122
  • 打卡月天数:18
  • 打卡总奖励:121
  • 最近打卡:2025-02-22 14:24:44
楼主
Waylee 楼主

主题

0

回帖

1万

积分

仙帝

积分
14008
Waylee 2020-11-22 22:33 | 显示全部楼层
QQ图片20201122223227.jpg
遇到这种问题就要检查all.material文件了
我是小白

主题

0

回帖

6

积分

练气

积分
6
我是小白 2020-12-22 23:33 手机频道 | 显示全部楼层
原来是大佬
  • 打卡等级:小镇青年
  • 打卡总天数:62
  • 打卡月天数:7
  • 打卡总奖励:62
  • 最近打卡:2025-02-16 19:29:46
奔雷手文泰来

主题

0

回帖

233

积分

金丹

积分
233
奔雷手文泰来 2023-9-11 02:00 | 显示全部楼层
的等等的点点滴滴
xiaobai333

主题

0

回帖

206

积分

金丹

积分
206
xiaobai333 2023-11-29 10:58 | 显示全部楼层
世上无难事,只怕有心人!
您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |天天打卡

GMT+8, 2025-2-22 16:45 , Processed in 0.133782 second(s), 8 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

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