Data Realms Fan Forums
http://forums.datarealms.com/

Guides to Offset Determination and Commenting
http://forums.datarealms.com/viewtopic.php?f=1&t=19092
Page 1 of 2

Author:  Azukki [ Thu Jun 24, 2010 8:28 pm ]
Post subject:  Guides to Offset Determination and Commenting

So, from this thread, I was surprised to see that it's not common knowledge how to exactly determine proper offsets other than tweaking and testing. Or maybe it's just a matter that anyone who understands how to isn't bothering to explain it.

There is an old tutorial on the wiki, but many, many aspects of it are either inaccurate or missing information. Plus, no one uses the wiki for anything but Lua reference anyways. (because of its shortcomings, which are caused by the fact that no one uses it. Unfortunate.)

These are my personal methods using windows xp's paint. Other methods may be more suitable for you, but hopefully the information provided here will be useful to you in getting started. Without further ado, the guides.
Image
Image

If you have any troubles following this guide, or have suggestions for its improvement, feel free to post. If I don't notice the reply, you can PM me if you want. These guides can be redistributed for any helpful purpose.


Attached below are the sprites I used in these guides, so if you want to recreate the steps with the same source material to verify that you're following it correctly, or something like that, you'll be able to do so. Please don't use these sprites for your own released mods, though.

Attachments:
AA12Mag.bmp [1.12 KiB]
Not downloaded yet
AA12000.bmp [1.49 KiB]
Not downloaded yet
AA12WithMag.bmp [1.49 KiB]
Not downloaded yet
WarfighterOffsetDemo.bmp [1.37 KiB]
Not downloaded yet
WarfighterOffsetDemoUnmarked.bmp [1.37 KiB]
Not downloaded yet
WarfighterMag.bmp [1.13 KiB]
Not downloaded yet

Author:  CCnewplayer [ Thu Jun 24, 2010 9:22 pm ]
Post subject:  Re: Guides to Offset Determination, Using MSPaint

This is a great job to new moders , I liked it.

Author:  Gotcha! [ Thu Jun 24, 2010 9:46 pm ]
Post subject:  Re: Guides to Offset Determination, Using MSPaint

Thumbs up, awesome work. :grin:

Author:  Contrary [ Fri Jun 25, 2010 2:13 am ]
Post subject:  Re: Guides to Offset Determination, Using MSPaint

I might actually start modding now.

Author:  Azukki [ Fri Jun 25, 2010 6:47 am ]
Post subject:  Re: Guides to Offset Determination, Using MSPaint

Thanks for the positive comments.
Speaking of comments...
Image
tl;dr

uncommented // this is an .ini line comment

uncommented
// this is an .ini line comment
uncommented

uncommented -- this is a .lua line comment

uncommented
-- this is a .lua line comment
uncommented

uncommented
/* this
is an .ini
block comment */
uncommented

uncommented
--[[ this
is a .lua
block comment ]]
uncommented

Author:  CCnewplayer [ Fri Jun 25, 2010 11:15 am ]
Post subject:  Re: Guides to Offset Determination and Commenting

To ini you can show the basic properties , like:

- How you can you use one AEmitter and what it's one AEmitter.
- How you can make one HDFirearm , Attachable( armor to who don't know ) ... stronger.
- How you can put infinite bullets in one mag.
- How you can change the bullet's particle go faster and for what make it go faster.
and the history continues ...

Author:  carriontrooper [ Fri Jun 25, 2010 11:42 am ]
Post subject:  Re: Guides to Offset Determination and Commenting

Correction! The end comment for block comment in Lua is simply ]].
Thank you.

Author:  Azukki [ Fri Jun 25, 2010 6:01 pm ]
Post subject:  Re: Guides to Offset Determination and Commenting

Really? I noticed that just ]] works in the formatting of Notepad ++, but it seems --]] is usually used, and all the online sources I bothered to find said --]] (all two of them), and I didn't try just ]] in-game. But now I have tried it in game, and it works fine, so I'll just fix that up. Thanks for noticing and reporting the problem.

Author:  Laraso [ Mon Jun 28, 2010 1:33 am ]
Post subject:  Re: Guides to Offset Determination and Commenting

Thanks, this guide has really helped with finding the offsets on weapons I make. Before I used to just type random numbers on them all until it looked right, not very professional at all.

By the way, where did you get that Windows theme?

Author:  Azukki [ Tue Jun 29, 2010 3:23 pm ]
Post subject:  Re: Guides to Offset Determination and Commenting

Well, you see, I had it highly customized, by leaving it at the default for Windows XP Home Edition. my computer's specific OS installation.
Energy Blue (Modified), and it's probably affiliated with E-machines, and is therefore likely best avoided.

Author:  Naxete [ Sat Sep 11, 2010 1:08 pm ]
Post subject:  Re: Guides to Offset Determination and Commenting

Very useful and complete tutorial, thank you a lot :grin:

Author:  Geti [ Sat Sep 11, 2010 10:55 pm ]
Post subject:  Re: Guides to Offset Determination and Commenting

Oh god I should really do limbs at some point shouldn't I? They have offsets relative to offsets relative to spriteoffset and all sorts of other nonsense. Everyone seems to trial and error these things waaaay too much.

EDIT: oh wow, forgot to say what a decent job you did of this Azukki. A+ would read again, all that jazz.

Author:  ShadowStorm [ Sat Sep 11, 2010 11:09 pm ]
Post subject:  Re: Guides to Offset Determination and Commenting

Yes! For the longest time I, just like the others have had to go through the pain of trial and error to find the points. Although even though I did I usually had no idea what I was doing. This guide cut down the amount of times I had to start up CC.. Thank you!

Edit: Actually I've got a question, do you know what the max pixels you can have between the joint offset(of the hand) and the support offset is?

Author:  Geti [ Sat Sep 11, 2010 11:31 pm ]
Post subject:  Re: Guides to Offset Determination and Commenting

depends on your actor's arm length, not the engine.

Author:  411570N3 [ Sun Sep 12, 2010 4:43 am ]
Post subject:  Re: Guides to Offset Determination and Commenting

It's not that big a deal though, as the actor will just hold it with one hand if it can't reach. You can add a line that decreases accuracy if the actor's only using one hand though.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/