<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7214777736639572307</id><updated>2024-11-01T13:33:59.956+03:00</updated><category term="general programming"/><category term="resource files"/><category term="gameplay"/><category term="ragnarok online"/><title type='text'>Level Up!</title><subtitle type='html'>Game designer notes</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chehob.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://chehob.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>chehob</name><uri>http://www.blogger.com/profile/15737938699521408441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7214777736639572307.post-4783318048458416976</id><published>2010-09-11T20:18:00.000+04:00</published><updated>2010-09-11T20:18:02.156+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gameplay"/><category scheme="http://www.blogger.com/atom/ns#" term="ragnarok online"/><title type='text'>Trading must be fun</title><summary type="text">Yesterday I was discussing Ragnarok Online trading system with a friend of mine and some interesting thoughts were found.

What I was thinking about - there is no fun involved with trading in RO, therefore it is not considered as a part of gameplay, rather a trivial function.
The trading profession in RO called &quot;merchant&quot; has only that Vending skill involved in trading, which allows players to </summary><link rel='replies' type='application/atom+xml' href='http://chehob.blogspot.com/feeds/4783318048458416976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chehob.blogspot.com/2010/09/trading-must-be-fun.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/4783318048458416976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/4783318048458416976'/><link rel='alternate' type='text/html' href='http://chehob.blogspot.com/2010/09/trading-must-be-fun.html' title='Trading must be fun'/><author><name>chehob</name><uri>http://www.blogger.com/profile/15737938699521408441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7214777736639572307.post-7951756638700044739</id><published>2010-08-08T16:58:00.001+04:00</published><updated>2010-08-08T17:00:02.015+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general programming"/><category scheme="http://www.blogger.com/atom/ns#" term="resource files"/><title type='text'>Resource files management IV</title><summary type="text">Previous posts: 
Resource files management. Part I
Resource files management. Part II
Resource files management. Part III

Okay, so far we&#39;ve been writing helper classes and now we&#39;re getting to the main stuff: ResourceFile class.
ResourceFile is pretty simple, let&#39;s take a look over its interface:

class ResourceFile
{
protected:
&amp;nbsp;&amp;nbsp;&amp;nbsp; ResFileHeader mFileHeader;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://chehob.blogspot.com/feeds/7951756638700044739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chehob.blogspot.com/2010/08/resource-files-management-iv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/7951756638700044739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/7951756638700044739'/><link rel='alternate' type='text/html' href='http://chehob.blogspot.com/2010/08/resource-files-management-iv.html' title='Resource files management IV'/><author><name>chehob</name><uri>http://www.blogger.com/profile/15737938699521408441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7214777736639572307.post-2376787740115996968</id><published>2010-08-07T12:08:00.003+04:00</published><updated>2010-08-08T16:58:57.638+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general programming"/><category scheme="http://www.blogger.com/atom/ns#" term="resource files"/><title type='text'>Resource files management III</title><summary type="text">Resource files management. Part I 
Resource files management. Part II

In previous post I wrote about implementation of data structures of the resource file.
Today&#39;s topic will be serialization of resource files.

File types

Ok, to retrieve our resources first of all we&#39;ll need to define basic methods of reading and writing with files.
In C++ it could be done simply using file streams. Refresh </summary><link rel='replies' type='application/atom+xml' href='http://chehob.blogspot.com/feeds/2376787740115996968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chehob.blogspot.com/2010/08/resource-files-management-iii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/2376787740115996968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/2376787740115996968'/><link rel='alternate' type='text/html' href='http://chehob.blogspot.com/2010/08/resource-files-management-iii.html' title='Resource files management III'/><author><name>chehob</name><uri>http://www.blogger.com/profile/15737938699521408441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7214777736639572307.post-3525804780349365375</id><published>2010-08-06T15:09:00.006+04:00</published><updated>2010-08-08T16:59:51.223+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general programming"/><category scheme="http://www.blogger.com/atom/ns#" term="resource files"/><title type='text'>Resource files management II</title><summary type="text">Resource files management. Part I 

Last time I&#39;ve described resource files and their data structure. Let&#39;s continue with management of resource files.

Lump and ResourceFile objects 
Resource files are implemented as objects and may be included in other programs to utilize resource files. I&#39;m using C++, though the provided concept may be written in any other programming language.

In the </summary><link rel='replies' type='application/atom+xml' href='http://chehob.blogspot.com/feeds/3525804780349365375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chehob.blogspot.com/2010/08/easy-resource-files-management-part-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/3525804780349365375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/3525804780349365375'/><link rel='alternate' type='text/html' href='http://chehob.blogspot.com/2010/08/easy-resource-files-management-part-ii.html' title='Resource files management II'/><author><name>chehob</name><uri>http://www.blogger.com/profile/15737938699521408441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7214777736639572307.post-7659962917354792955</id><published>2010-07-24T16:56:00.013+04:00</published><updated>2010-08-08T17:00:28.131+04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general programming"/><category scheme="http://www.blogger.com/atom/ns#" term="resource files"/><title type='text'>Resource files management</title><summary type="text"> 
First of all, a little bit of theory before I present actual implementation. Let&#39;s find out what is a resource file and why we would want to use them.

Resource files
Ok, we all know that video games consist of various components like sound effects, music, 3d models, textures, fonts, scripts etc. Each piece of these is a File.
When you build your game, you add these components, file by file and</summary><link rel='replies' type='application/atom+xml' href='http://chehob.blogspot.com/feeds/7659962917354792955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chehob.blogspot.com/2010/07/easy-resource-files-management-part-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/7659962917354792955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7214777736639572307/posts/default/7659962917354792955'/><link rel='alternate' type='text/html' href='http://chehob.blogspot.com/2010/07/easy-resource-files-management-part-i.html' title='Resource files management'/><author><name>chehob</name><uri>http://www.blogger.com/profile/15737938699521408441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>