Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab  » More Info in Laptop - Personnel page
Re: More Info in Laptop - Personnel page[message #257773] Wed, 28 July 2010 14:51 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Not only where, also the package size. I think smeagols ammo boxes are something like 10% off compared to the same amount shipped in magazines (back when you could buy both, but the difference is still there I guess).
And then there's that little matter about different calibers. A .22 costs far less than a .408 or .50, hell there's even a difference between ball and match of the same caliber, so you would have to keep track of the fired rounds divided by caliber and type.

So either you just give a rough estimate based on shots fired and an arbitrary ammo cost (which is pointless) or it's one of those completely over the top detail statistics, requiring something like 100 new variables. (which isn't worth the effort)

Report message to a moderator

Captain

Re: More Info in Laptop - Personnel page[message #259837] Thu, 19 August 2010 11:58 Go to previous messageGo to next message
raycrasher is currently offline raycrasher

 
Messages:51
Registered:August 2010
Location: Philippines
About the savegame thing, it *could* be possibly implemented by appending the data to the end of the file - but any functions that uses the length of the save file for their calculations will make things complicated.

Report message to a moderator

Corporal
Re: More Info in Laptop - Personnel page[message #259888] Thu, 19 August 2010 20:56 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
That won't work because the game uses certain objects for parts of the game, for merc profiles for example. If something new is added to the profile it will be saved inside this profile block. Nobody will rip apart an object to save the parts in different places

Report message to a moderator

Lieutenant
Re: More Info in Laptop - Personnel page[message #259945] Fri, 20 August 2010 03:15 Go to previous messageGo to next message
raycrasher is currently offline raycrasher

 
Messages:51
Registered:August 2010
Location: Philippines
How about creating a different file? With the same filename but different extension, that contains auxiliary mod-specific data...

Report message to a moderator

Corporal
Re: More Info in Laptop - Personnel page[message #259956] Fri, 20 August 2010 10:52 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
It doesn't matter if you try to write parts of an object to a different position in one file or to a different file. No coder would want to have twice the workload for no benefit.

Sometimes players just have to accept that they need to start a new game in order to use the new shiny features or change the game code themselves if they absolutely want to use their old savegames.
I did that for the step from STOMP 1.12 to 1.2 but of course now my savegames are only compatible to my exe. Doesn't bother me much because I compile my own exe anyway.

Report message to a moderator

Lieutenant
Re: More Info in Laptop - Personnel page[message #260412] Tue, 24 August 2010 01:10 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Hey Sandro!

Nice initiative again! Was thinking that I've heard several people asking for a battle report. Would it be possible to combine a report of the last battle with this feature you're currently working on?

e.g.

[code]Kills: - Total - Last Battle
Elites 6 - 2
Regulars 9 - 3
Admins 0 - 0
Creatures 0 - 0
Tanks 0 - 0
* Civilians ? 0 - 0
Others 0 - 0
*Most killed in one turn ? 1 - 1

(with the proper alignment preferably Smile )

Report message to a moderator

Master Sergeant
Re: More Info in Laptop - Personnel page[message #260414] Tue, 24 August 2010 01:31 Go to previous messageGo to next message
cdudau
How about a report sent via e-mail file (Kind of like the recon report)? Maybe it could be sent either daily, weekly, monthly, or yearly.

It would also be cool, yet really hard to pull off, if the game would take a screen shot of your battle. Then later, after the battle, you would receive an after action report.

Just some brain storming.

Report message to a moderator

Re: More Info in Laptop - Personnel page[message #260578] Wed, 25 August 2010 17:15 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
You've got mail.

Yeah, sure. =D

Report message to a moderator

Master Sergeant
Re: More Info in Laptop - Personnel page[message #260581] Wed, 25 August 2010 17:24 Go to previous messageGo to next message
cdudau
That's even better!

Report message to a moderator

Re: More Info in Laptop - Personnel page[message #263296] Wed, 22 September 2010 23:33 Go to previous messageGo to next message
sorca_2 is currently offline sorca_2

 
Messages:202
Registered:September 2010
Location: California, USA
Just checking in on this--I'm a total stat fiend. I have a million ideas and suggestions for this, but I was mostly wondering if this is being worked on or if it has already been implemented.

I wish there was way to look at merc stats in Tactical... tooltip on your own merc or maybe the mugshot in the inventory panel?



This stuff alone makes me want to learn how to code...

[Updated on: Wed, 22 September 2010 23:34] by Moderator

Report message to a moderator

Sergeant 1st Class
Re: More Info in Laptop - Personnel page[message #263297] Wed, 22 September 2010 23:35 Go to previous messageGo to next message
lockie is currently offline lockie

 
Messages:3721
Registered:February 2006
Location: Scotland
WF 6.04 retail has something similar , looks good .

Report message to a moderator

Captain

Re: More Info in Laptop - Personnel page[message #263355] Thu, 23 September 2010 17:33 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Learning how to code is a good reason to hop back into the Bear's Den... uh Cave... and ask people unreasonable stuff.

I'm currently learning how to... let's say DEAL with code. Haven't even finished the C++ tutorial, but I'm currently basically full-time working with Visual Basic and I issued a friend of mine to hand me tasks so I keep the steady learning curve I've had so far. Creating a simple calculator isn't exactly reprogramming a 1337 game, but learning this bitch goes so fast I'm even laughing at the shit I wrote two weeks ago.

So now for the general request... uh... in this very thread, yeah, good choice, for sure. Not. Anyway, technically it would only take time and effort to learn C++ from the bottom up or get from VB basics to simple C++ coding, but since the last months directly showed me how valuable of a good time actually is and I don't believe I'll master either language until New Year's Eve, will anybody gimme some sort of... well... advice... sounds damn stupid...

I'm actually asking if anybody having gotten a bit further than cout << "Hello World..." could pretty much summarize the most important shit, make a list of the most used functions and whatnot and hint at the most common or most evil errors there are, basically create a general outline in order for me to get into coding C++ a bit quicker (like only 8 years from now instead of 13)?

I don't plan on becoming some leet hacker guru just by reading general advice and learning the language is an obligation, of course, but it's like: Well, imagine someone joining in on a match of Basketball, but he doesn't know jack about it except having heard about black people being good at it. However, he isn't fat or needs to know what a ball is due to never having seen one in his life. And he doesn't need to know the history of this game or the names of the most popular players... just general rules, like, well... List of operators, important stuff (putting a semicolon after each line), how to change an array size, but leaving out everything about arrays in general... blah.

So you could link me this stuff. Lol. Alright.

It's only that I thought I could become useful coding some lines in this game, but it feels like time's just passing by, almost 2011 and I haven't even managed to read through the tutorial, daymnh!


By the way, what's up with Sandro? =D

The Frg

Report message to a moderator

Master Sergeant
Re: More Info in Laptop - Personnel page[message #263363] Thu, 23 September 2010 18:45 Go to previous messageGo to next message
sorca_2 is currently offline sorca_2

 
Messages:202
Registered:September 2010
Location: California, USA
LootFragg
Well, imagine someone joining in on a match of Basketball...
...And he doesn't need to know the history of this game or the names of the most popular players... just general rules, like, well... List of operators, important stuff (putting a semicolon after each line), how to change an array size, but leaving out everything about arrays in general... blah.

[cue drums]

Semicolons? Array sizes? German basketball intrigues me.

[/drums]

Sorry, couldn't help it. But seriously: I applaud your effort. I was serious when I said that about learning above, and I wish we could coordinate somehow. Unfortunately (for C++) my early quest to flood the board with offers for help finally turned up one genuine acceptance (helping Bio with logical bodytypes) and one idea that it appears, so far, I have to do on my own without help (the new user guide). Based on the level of difficulty you're describing, it probably wouldn't be practical to work on the bodytypes and C++ at the same time. I hope you get the help you're looking for.

Report message to a moderator

Sergeant 1st Class
Re: More Info in Laptop - Personnel page[message #263376] Thu, 23 September 2010 21:07 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
There is no helping me but I can't refrain from asking it all the time. Yeah, I'm currently some sort of intermediate beginner I guess. I'm effing intelligent - in a creepy way - but I can't code yet for shit. I'm far above the average computer user and I'm even digging into our companies' network code to figure out how this shit works. Less I'm allowed to, the prouder I get. Lol. Nah, you could for example tell me what you mean by bodytypes and tell me stuff about it, I'm sucking data like a sponge. The huge downside of being capable of learning things is that I'm afraid I might stop. That's why I can't wait till christmas to get started with C++ again.

So you didn't know about us Germans, huh? We hate running around the field kicking or throwing objects like madmen. Everything has to be in perfect order, so it's all programmed, so everybody knows when the game's on, when exactly it'll be over (we've got scheduled overtime) so people can adapt and get home / to work / to their individual body charging stations right on time. Ze vay itz suppozed to be.

Uh... by the way, why did you... uh... quote... sorca_2
I was serious when I said that about learning above
Hope you didn't assume I wasn't. Might be a bit pathetic, like your 5 year old brother saying that he wants to play in a rockband or something, yeah sure, go play hide and seek, but seriously, I'll play in that fugging rockband.

And I wasn't interested in dealing with JA2 stuff at the moment, neither did I want to keep you from doing your advanced stuff. Just saying. Good luck with that, by the way. If you can pretend to need any help from that 5 year old brother of yours, he'll be waiting here playing with his balls. Basketball I'm saying.

Loot Fragg As Dude lol (Compiling Error: 'lol' not found)

Report message to a moderator

Master Sergeant
Re: More Info in Laptop - Personnel page[message #263379] Thu, 23 September 2010 21:19 Go to previous messageGo to next message
grodrigues is currently offline grodrigues

 
Messages:27
Registered:June 2010
LootFragg
Learning how to code is a good reason to hop back into the Bear's Den... uh Cave... and ask people unreasonable stuff.



I don't plan on becoming some leet hacker guru just by reading general advice and learning the language is an obligation, of course, but it's like: Well, imagine someone joining in on a match of Basketball, but he doesn't know jack about it except having heard about black people being good at it. However, he isn't fat or needs to know what a ball is due to never having seen one in his life. And he doesn't need to know the history of this game or the names of the most popular players... just general rules, like, well... List of operators, important stuff (putting a semicolon after each line), how to change an array size, but leaving out everything about arrays in general... blah.

So you could link me this stuff. Lol. Alright.


Hate to be the Harbinger of bad news, but C++ is one of the hardest, contrived, more difficult programming languages to learn. Hell, even its *syntax* can be right down tortuous. And don't even get me started on template programming . VB++ (or whatever Microsoft has called its latest incarnation) has been improving along the years but it still is a Bad Programming Language (do not bother do flame me; I have many reasons to back up my opinion, but this is not a debate that I am willing to pursue here) but compared to C++ it is easy as pie (and one of the reasons of its popularity -- Microsoft's marketing clout does not explain everything).

If you are really interested in learning C++ I suggest B. Eckel's Thinking in C++ and Frank Brokken's C++ Annotations. The latter is available online and I think there are free online versions of the former also. Unfortutanetely, if you are a total beginner in programming, they are probably difficult. Maybe you want to start with a tutorial in C (no suggestions here, unfortunately).

Then there are some really good online resources. The C++ FAQ is about as good as it gets to clear many doubts, not just about corner cases (and there are gobs of them) but also on the *philosophy* of writing good C++. The Dinkum C++ library is also a good source to know what that function or class in the standard librray does (or just the its calling conventions, types of arguments and all that stuff).

I do not know how helpful this is an advice (probably useless). But I know that LUA scripting has been added to JA2. LUA is much easier to learn than C++ and could be a good project if you want to dig in JA2's source. Although called a "scripting language" it is a full fledge programming language capable of spinning some really powerful black programming wizardry (as functions are first class objects, it has closures, continuations, etc.).

Regards,
G. Rodrigues

Report message to a moderator

Private 1st Class
Re: More Info in Laptop - Personnel page[message #263380] Thu, 23 September 2010 21:26 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
Actually this is Sandros project and since he is away you probably won't see any more progress. Most of his ideas already made it to the current beta exe.

Report message to a moderator

Lieutenant
Re: More Info in Laptop - Personnel page[message #263391] Thu, 23 September 2010 22:25 Go to previous messageGo to next message
sorca_2 is currently offline sorca_2

 
Messages:202
Registered:September 2010
Location: California, USA
Thanks for the info, surfer. I think we were more "inspired by" this project than actually seeking to work on it (I was, anyway). You actually answered my original question though--they're in the beta .exe--got it.

Report message to a moderator

Sergeant 1st Class
Re: More Info in Laptop - Personnel page[message #263502] Fri, 24 September 2010 18:45 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
grodrigues, thank you so much. I think I won't bother checking the links for now. If VB far easier than C++ Then Not bother. I even think VB's fucking annoying. Alright, I'm still using some weird old version. I've checked on the newest... uh... Express version and damn, they have seriously worked on it. Still, if C++ is so much harder than this old MS bullshit, I'll just keep my hands off of it.

Uh yeah, I won't flame you (lol) or anything. As you can see, I don't like VB either.

One of the big problems about getting started is choosing what language to begin with, I suppose. For now, I've seen C++ and VB and some... C I suppose. But then there's JASS, LUA, all kinds of languages and even if you can basically program stuff and think of how you might structure your code, it's like holding a speech in Spanish, then in French and Vietnamese. Every language has its own way of expressing the same shit. When I started getting into VB, I was even confused by simple stuff. If you put a simple conditional statement - the most basic thing on earth - in one line, it ends the statement at the end of the line without the need for an End order (and without accepting one). When filtering numerical values from strings, Val() will accept dots, but no commas (and German versions output decimal breaks with commas automatically), the help stated that you could transform it using CDbl() instead, no problem. But CDbl() has got a problem with empty strings so the main thing I do in VB is work around problems I don't deem logical at first glance. What I've seen from C++ so far... well, it seemed, let's say... more firm, it looked like there are no user friendly (lol) functions like they should be in VB, but it also seemed to not... yeah, confuse one too much. I don't know, I haven't actually coded in C++ yet.

I won't dig deeper and ask what's so difficult about its syntax. Might keep me from trying. ^^

Thank you so much, grodrigues. That's it with the HELPMEH spam for now. Have to get my bike fixed.

De Loot Phragg

Report message to a moderator

Master Sergeant
Re: More Info in Laptop - Personnel page[message #263511] Fri, 24 September 2010 20:58 Go to previous messageGo to next message
grodrigues is currently offline grodrigues

 
Messages:27
Registered:June 2010
LootFragg


One of the big problems about getting started is choosing what language to begin with, I suppose. For now, I've seen C++ and VB and some... C I suppose. But then there's JASS, LUA, all kinds of languages and even if you can basically program stuff and think of how you might structure your code, it's like holding a speech in Spanish, then in French and Vietnamese. Every language has its own way of expressing the same shit. When I started getting into VB, I was even confused by simple stuff. If you put a simple conditional statement - the most basic thing on earth - in one line, it ends the statement at the end of the line without the need for an End order (and without accepting one). When filtering numerical values from strings, Val() will accept dots, but no commas (and German versions output decimal breaks with commas automatically), the help stated that you could transform it using CDbl() instead, no problem. But CDbl() has got a problem with empty strings so the main thing I do in VB is work around problems I don't deem logical at first glance. What I've seen from C++ so far... well, it seemed, let's say... more firm, it looked like there are no user friendly (lol) functions like they should be in VB, but it also seemed to not... yeah, confuse one too much. I don't know, I haven't actually coded in C++ yet.

I won't dig deeper and ask what's so difficult about its syntax. Might keep me from trying. ^^


I should probably say in the first place, that in all fairness, C++ while IMHO difficult to learn and be really profficient in, and really not suitable for a beginner, it *is* a powerful language. It may be the most popular language in the industry (do not have the numbers by me, so I may be way off, but I think not even Java comes close), with a HUGE installed base of users and literally milions and millions of LOCs written, covering just about every domain of software under the sun.

I won't comment anymore on the strengths and weaknesses of C++, but to give you just one example where the syntax is less than clear (and believe me, there are many more, ranging from the minor annoyance to the right down bamboozling), quickly, what does the following type declaration means?

void *(*(*fpr)(int))[10];

If you can parse that declaration without the some serious effort, either you are a genius or have been programming C++ since the dinossaurs reigned the earth (for the record: it means that fpr is a pointer to a function that takes an integer argument and returns a pointer to an array of 10 void pointers - both B. Eckel and F. Brokken explain very well how to parse such declarations). Admittedly, you yourself will probably have enough discipline to not write such a horrible mess, but if you are working in a team there is always some smart jackass...

Now, I am not a professional programmer (for the record, I am a mathematician) but have programmed enough either in semi-professional settings or in private projects to have gathered some experience. There is a critical point past which learning a new programming language is not a serious effort, because they are all based on much the same principles. Once you learn these principles, it is basically a matter of learning the often superficial, syntactical differences and more important of all, the library facilities that the language provides.

Now if you are just starting out, then I would recommend the Python programming language, precisely because it is a multi-paradigm language, supporting the imperative, functional and OO styles (the relational style of languages like PROLOG is not covered, but hey the world is not perfect). It is free (as in speech but also as in beer), it has a remarkably clean syntax, very gentle for newbies and yet very powerful. Some of the following may mean nothing to you, but it has first class functions, closures, iterators and coroutines, metaclasses, automatic garbage collection, comes with a very complete built-in library with facilities to write web servers and clients, gui apps, connecting to databases, XML parsing, etc. The official documentation is also pretty nice. It has one tutorial explicitly targeted for newbies and another slighly more advanced called Dive into Python. There are also many books available out there and many free online resources.

A minor caveat, which may or may not be important for you: there is an important transition occuring right now from Python 2.* to Python 3.* and some important third-party libraries (Twisted, Django, wxPython, numpy, etc.) have still not been ported to the newest 3.* version. If this poses no problems (as it probably does not, since you are just starting out) then just grab the stable Python 3.1.2 (or the alpha 3.2 if you are feeling adventurous) from the official Python site (www.python.org). The ActiveState company (just google) also offers a Python distribution with some extra oomph for Windows and additionally they offer a free version of their Python code editor called Komodo. It has some limitations in comparison with the commercial version, but it is more than enough to get you started. And there are a plethora of *free* Python IDE's available (and yes, the official python distro comes with one, it is called IDLE).

Good luck on your learning. Best regards,
G. Rodrigues

Report message to a moderator

Private 1st Class
Re: More Info in Laptop - Personnel page[message #263550] Sat, 25 September 2010 10:49 Go to previous message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Hhhhhwwwow! Oh my god, thanks a lot. Yeah, I've read about pointers and reversed pointers (getting the value of an address instead of getting the address of a value and all kinds of weird gibberish), but you're absolutely right, I couldn't decipher this. Or I probably could, given some time, but I couldn't make sense out of it. C++ is probably the Latin among the programming languages. You can translate it, but you won't understand it. ^^ Be knowing those whose knowledge's being which knowingly knows these now unknown vedividiviciWHAT? And yes, I'm the exact opposite, I clutter my code with comments for either me, so I always know what the fuck I was thinking, or the rare others with less insight than me.

Mathematicians rule.

I'll definitely check out Python. Always heard of it, but never knew what it meant. Oh and yay! I know what some of the features mean! Wooh! Like... Garbage collection means there's some routine jumping around the code picking up variables that aren't used anymore (probably marked as such by some trashing function) in order to free some memory, right? Ah, feels good to be an intermediate noob.

Mister Rodrigues, sir, you are a hero. Thank you so very much for limiting my enthusiasm to some extent and moving it in the right direction (hope it IS the right one ^^); Return 0;

Report message to a moderator

Master Sergeant
Previous Topic: Hotkey Externalization
Next Topic: kL Animations
Goto Forum:
  


Current Time: Fri Apr 19 10:01:26 GMT+3 2024

Total time taken to generate the page: 0.02175 seconds