SourceModGen - Data modeling tool
Hey guys,
For the past day or so I have been working on the first version of what I like to call SourceModGen Link: http://smgen.pointlimit.com Github (source code): https://github.com/AnthonyIacono/SourceModGen What is it? SourceModGen is a data visualization tool that will generate redundant code based on structure descriptions. It supports many different types and in the future (once I get some sleep) I will make it generate database CRUD methods as well (Create, Read, Update, Delete) UPDATE v1.1: SourceModGen now generates KV read / write functions. UPDATE v1.2: SourceModGen now generates constants (with a configurable prefix) instead of hard-coding block size, field KV keys, and field max lengths. In short, SourceModGen generates functions that allow you as an SM developer to worry less about the structure and storage of your data and worry more about getting things done. I haven't had a chance to test it thoroughly, but reading over the generated code looks promising. |
Re: SourceModGen - Data modeling tool
WOW
Thanks a lot... |
SourceModGen - Data modeling tool
:) I can't wait to add some more stuff to this and release a data modeling video tutorial.
|
Re: SourceModGen - Data modeling tool
Okay just updated it to generate read / write functions for KeyValues. I've also changed the default variable prefix and function parameter prefix. I'll be doing a video tutorial next on how you can use SMGen to speed up development cycles.
|
Re: SourceModGen - Data modeling tool
Wtb malloc calloc
realloc* |
Re: SourceModGen - Data modeling tool
Code:
CloseHandle() |
Re: SourceModGen - Data modeling tool
Unless I'm misunderstanding your not-sentence.
|
Re: SourceModGen - Data modeling tool
No, i am just pointing out how odd and inefficient dynamic array models are in pawn.
But sure, you don't need these type functions, esp realloc, you can just allocate a new array of the new size, copy the contents, and close the old handle, and return the new handle. You need more functions to do it. Also, there is no tag type associated to the array, i think, so you can't initialize it on creation. This is a bit annoying. Presumably array creation will succeed? There is no way of knowing i think, because it doesn't return something like null ptr on failure. |
Re: SourceModGen - Data modeling tool
SMGen creates a copy function.
Example: Code:
stock Handle:War3_CopyWar3Race(Handle:p_War3Race) { |
Re: SourceModGen - Data modeling tool
Quote:
Quote:
Quote:
|
All times are GMT -4. The time now is 08:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.