Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Changing Course/Class
#32
@exg9 where is hit_d: O.o
its not to make next 260, but hit_d: 260.


Sprites and pics
Sprites can be loaded by 2 ways:
1. By exe file
2. By dat files

We can only edit those in dat files, which are used for DC things (like cars,weapon,bg,etc).
If we want to put some bmp files in a char,weapon or whatever (field) object it is, then we have to wrtie the following line in bmp part of the dat file. Let's take an example:
    DC-Code:
<bmp_begin>
name: Dennis
head: sprite\sys\dennis_f.bmp <-- the location of dennis face (used in character menu, must be addaed in characters)
small: sprite\sys\dennis_s.bmp <--- the location of dennis small icon (used in battla mode, during the fight,etc)
file(0-69): sprite\sys\dennis_0.bmp  w: 79  h: 79  row: 10  col: 7 <-- dennis sprites
file(70-139): sprite\sys\dennis_1.bmp  w: 79  h: 79  row: 10  col: 7 <-- dennis sprites
file(140-209): sprite\sys\dennis_2.bmp  w: 79  h: 79  row: 10  col: 7 <-- dennis sprites
walking_frame_rate 3
walking_speed 5.000000
walking_speedz 2.500000
running_frame_rate 3
running_speed 10.500000
running_speedz 1.650000
heavy_walking_speed 3.700000
heavy_walking_speedz 1.850000
heavy_running_speed 6.200000
heavy_running_speedz 1.000000
jump_height -16.299999
jump_distance 10.000000
jump_distancez 3.750000
dash_height -10.000000
dash_distance 18.000000
dash_distancez 5.000000
rowing_height -2.000000
rowing_distance 5.000000
<bmp_end>


Now, let's split one of them:
file(0-69): sprite\sys\dennis_0.bmp w: 79 h: 79 row: 10 col: 7

Now analyse every element of it:
file(0-69): sprite\sys\dennis_0.bmp <---bmp file location
w: 79 <-- weight of one gird
h: 79 <--- height of one gird
row: 10 <--- number of grids in one row
col: 7 <--- number of girds in one coloumn
*(0-69) It is a refering number that helps you to show what number of pics does this bmp include.

Tip: When you are trying to add a new bmp, just copy another line and then make changes.
[Image: U4FLPnC.png]

It is important to know that every gird is seperated with one pixel line, so be careful when you calculate. Every count starts from 0.

WARNING
Computer only read what is written on dat file, it does not count girds that are out of determined size and number of (row/col) in dat file.

[Image: AnjRDM9.png]

Pics usage:
    DC-Code:
<frame> 0 standing
   pic: 0 // in this case this frame is using pic number 0//  state: 0  wait: 16  next: 1  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 235 hit_Fj: 245 
 
hit_Uj: 260 hit_Dj: 270
   bpoint:
      x: 40  y: 35
   bpoint_end:
   wpoint:
      kind: 1  x: 40  y: 43  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 21  y: 18  w: 43  h: 62
   bdy_end:
<frame_end>


Coordinates
when you see x: 45 and y: 13 (numbers are the example), that means that we have coordinates (of a single pixel). When you see centerx: and centery: (in frame header) they show

the coordiantes of the shadow (the center pixel of the shadow). These images will help you how to find coordinates :D
The first pixel has coordinates (0,0) just like when they are in paint, but be carefull, when you are not in the pic 0, you must not put coordinates that are shown in pain, substract

number of passed girds multiplying weight/height of gird.

Refering system[Image: huI4q2a.png]

Starting coordinate
[Image: z5MDlfF.png]

Coordiantes[Image: gmNNwOY.png]
Complex coordinates [Image: Pboh5v1.png]

Width and height (in bdy,itr)
when you see w: or h: it shows the filed height/width that it cover.
This is better than words[Image: xywhcv8.jpg]


Now go experiment with those things, i will give you HW tomorrow
Reply
Thanks given by:


Messages In This Thread
Data Changing Course/Class - by empirefantasy - 07-12-2013, 08:31 PM
RE: Data Changing Course/Class - by Sam Fisher - 07-13-2013, 05:08 AM
RE: Data Changing Course/Class - by Rhino.Freak - 07-13-2013, 02:12 PM
RE: Data Changing Course/Class - by T.O.R.N.A.D.O - 07-13-2013, 04:18 PM
RE: Data Changing Course/Class - by empirefantasy - 07-13-2013, 08:50 PM
RE: Data Changing Course/Class - by empirefantasy - 07-15-2013, 10:43 AM
RE: Data Changing Course/Class - by The Hari - 07-15-2013, 12:19 PM
RE: Data Changing Course/Class - by empirefantasy - 07-18-2013, 10:57 AM
RE: Data Changing Course/Class - by Sam Fisher - 07-20-2013, 05:18 AM
RE: Data Changing Course/Class - by empirefantasy - 07-18-2013, 06:15 PM
RE: Data Changing Course/Class - by Monolanier - 07-18-2013, 06:28 PM
RE: Data Changing Course/Class - by Dr. Time - 07-19-2013, 01:04 PM
RE: Data Changing Course/Class - by AmadisLFE - 07-20-2013, 11:43 AM
RE: Data Changing Course/Class - by Monolanier - 07-20-2013, 12:04 PM
RE: Data Changing Course/Class - by AmadisLFE - 07-20-2013, 12:07 PM
RE: Data Changing Course/Class - by Dr. Time - 07-20-2013, 02:05 PM
RE: Data Changing Course/Class - by Dr. Time - 07-20-2013, 03:22 PM
RE: Data Changing Course/Class - by empirefantasy - 07-20-2013, 08:01 PM
RE: Data Changing Course/Class - by koori - 07-21-2013, 12:19 AM
RE: Data Changing Course/Class - by Dr. Time - 07-21-2013, 03:28 AM
RE: Data Changing Course/Class - by Sam Fisher - 07-21-2013, 03:53 AM
RE: Data Changing Course/Class - by AmadisLFE - 07-21-2013, 11:25 AM
RE: Data Changing Course/Class - by empirefantasy - 07-22-2013, 11:02 AM
RE: Data Changing Course/Class - by Monolanier - 07-24-2013, 04:39 PM
RE: Data Changing Course/Class - by empirefantasy - 07-24-2013, 06:52 PM
RE: Data Changing Course/Class - by Monolanier - 07-26-2013, 09:47 AM
RE: Data Changing Course/Class - by empirefantasy - 07-25-2013, 07:54 PM
RE: Data Changing Course/Class - by Dr. Time - 07-26-2013, 04:41 AM
RE: Data Changing Course/Class - by empirefantasy - 07-26-2013, 03:37 PM
RE: Data Changing Course/Class - by Monolanier - 07-26-2013, 04:35 PM
RE: Data Changing Course/Class - by Dr. Time - 07-27-2013, 04:25 AM
RE: Data Changing Course/Class - by Sam Fisher - 07-27-2013, 05:01 AM
RE: Data Changing Course/Class - by koori - 07-28-2013, 06:15 AM
RE: Data Changing Course/Class - by empirefantasy - 07-28-2013, 08:13 AM
RE: Data Changing Course/Class - by empirefantasy - 07-30-2013, 08:52 AM
RE: Data Changing Course/Class - by empirefantasy - 08-01-2013, 07:05 PM
RE: Data Changing Course/Class - by A-Man - 08-01-2013, 09:15 PM
RE: Data Changing Course/Class - by Monolanier - 08-02-2013, 05:34 AM
RE: Data Changing Course/Class - by Rhino.Freak - 08-02-2013, 06:19 AM
RE: Data Changing Course/Class - by Alblaka - 08-02-2013, 08:31 AM
RE: Data Changing Course/Class - by Rhino.Freak - 08-02-2013, 08:38 AM
RE: Data Changing Course/Class - by empirefantasy - 08-06-2013, 12:38 PM
RE: Data Changing Course/Class - by empirefantasy - 08-12-2013, 10:10 AM
RE: Data Changing Course/Class - by AmadisLFE - 08-13-2013, 09:30 AM
RE: Data Changing Course/Class - by koori - 08-15-2013, 01:23 AM
RE: Data Changing Course/Class - by empirefantasy - 08-15-2013, 05:22 PM
RE: Data Changing Course/Class - by Sam Fisher - 08-16-2013, 05:42 AM
RE: Data Changing Course/Class - by empirefantasy - 08-16-2013, 04:55 PM
RE: Data Changing Course/Class - by empirefantasy - 08-22-2013, 01:36 PM
RE: Data Changing Course/Class - by Monolanier - 08-22-2013, 01:40 PM
RE: Data Changing Course/Class - by empirefantasy - 08-27-2013, 10:18 AM
RE: Data Changing Course/Class - by koori - 08-29-2013, 09:29 AM
RE: Data Changing Course/Class - by Dr. Time - 08-29-2013, 09:50 AM
RE: Data Changing Course/Class - by empirefantasy - 08-31-2013, 04:16 PM
RE: Data Changing Course/Class - by Dubzilla - 12-28-2013, 04:27 AM
RE: Data Changing Course/Class - by empirefantasy - 12-28-2013, 08:49 PM
RE: Data Changing Course/Class - by Dubzilla - 01-02-2014, 03:55 AM
RE: Data Changing Course/Class - by Nyamaiku - 01-02-2014, 11:29 AM
RE: Data Changing Course/Class - by empirefantasy - 01-02-2014, 03:08 PM
RE: Data Changing Course/Class - by ThrillerBeat - 04-27-2014, 12:28 PM
RE: Data Changing Course/Class - by empirefantasy - 04-27-2014, 09:28 PM



Users browsing this thread: 1 Guest(s)