Back to the Korax Forum Archives


Forum

can switch between weapons

Tue, 20 Feb 2007 21:40:23

jonc2006

im just starting out as a cleric and im right at the part where you get your second weapon on the seven portals. after i pick it up it seems to work fine but for some reason if i switch back to the melee weapon, the game wont let me switch back and forth between the mace or the staff afterwards. i configured the keys so that my right shift key moves to the next weapon, but even if i switch the key back to its original map position (#2) it still wont respond. ive tried quiting and loading kmod back up but it still doesnt work. im using hexen 1.1 so is this something intentional in design of the mod or is it a glitch of some sort? can anyone provide me with some ideas on how to fix this or find me a patch?
Tue, 20 Feb 2007 22:50:21

Moose

Could you let me know which version of KMod you are using, either 3.0 or 2.8, it'll help me to figure out what the error is. If it is KMod3 then chances are I have already fixed the problem, as key mapping had lots of bugs from a slightly messy re-configuration. Either way I'll try my best to resolve the problem quickly, but you may have to wait till Friday for me to start, I have a nasty big ass piece of Java coursework due in at 3PM on thursday.
Wed, 21 Feb 2007 01:14:17

Firebrand

Java coursework? Java sometimes requires a lot of time to implement, may I ask what you are doing? <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Wed, 21 Feb 2007 01:22:10

Moose

I have to make a Geographic Distance Calculator, it's easy as pie. But as you said time consuming. Plus I'm a real programmer I use C++ <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> so Java is actually taking some thinking about. I could post the task if you like.
Wed, 21 Feb 2007 02:03:59

Firebrand

Well, Java isn't very difficult to learn if you know object programming bases, the only difficult part is to design the objects you'll use and they relations, once you have decided that is easy to write the code, the most complex stuff I've done with Java is to manage SQL queries through web pages, is a pain in the ass <!-- s:x --><img src="{SMILIES_PATH}/icon_mad.gif" alt=":x" title="Mad" /><!-- s:x --> . As for posting the task, you can post it if you like, I think it would be interesting to know what the hell a geographic distance calculator does, hehehe!
Wed, 21 Feb 2007 02:17:04

Moose

Well most of the none Korax stuff I do in C++ is OOP so I'm having no problems with this, my problem is I want to define methods before writing them and oh how I wish I could have header files. Oh and here is the task.
Write an application to calculate a table of geographic distances. The input of your application is a file containing the coordinates of cities in latitude / longitude pairs, where latitude and longitude are given in degrees and minutes, as in:
Edinburgh 55;57N 03;13W
London 51;30N 0;30W
NorthWalsham 52;50N 01;22E
Norwich 52;38N 01;18E
Notice that 1 degree = 60 minutes. The output should be a text file containing a table of geographic distances in kilometres:
Edinburgh 0.00 520.90 452.43 467.11
London 520.90 0.00 194.50 175.33
NorthWalsham 452.43 194.50 0.00 22.57
Norwich 467.11 175.33 22.57 0.00
The application should take the names of the input file (giving the latitude / longitude coordinates) and the output file (into which the distance table is written) from the first and second command line parameter. For example, if your project is called geodist and your input file is cities.txt, the command line
java -jar geodist.jar cities.txt distances.txt
should write the distance table into distances.txt.
Wed, 21 Feb 2007 02:23:53

Firebrand

What I always forget is that an object should only do one task, it's easier for me to write all in a single class <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, but that's how it works. Indeed, it's not very complicated stuff, all you have to take care with is how you read the values from the text file and to convert them from string to number format <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, the rest is just to calculate the distance and add the results to a text file (which is a piece of cake).
Wed, 21 Feb 2007 02:41:53

jonc2006

im using 2.8 i belive, i couldnt find a working link to the 3.0 beta. btw this is an excellent mod, very cool too. one thing though, i feel its a bit unbalanced, i was able to get my efficiancy stat up and now i dont need to collect blue mana for my second weapon. it kinda feels like cheating. maybe in the next release you could make it so that your level-ups are spaced out more.
Wed, 21 Feb 2007 14:00:36

Moose

Right I'll look into the problem over the weekend, and in KMod3 the attribute system is new and improved anyway, so balance should be less of an issue I hope.
Thu, 22 Feb 2007 08:04:59

Crimson Wizard

[quote="Moose":1kgw7yjg]I have to make a Geographic Distance Calculator, it's easy as pie. But as you said time consuming. Plus I'm a real programmer I use C++ <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> so Java is actually taking some thinking about. I could post the task if you like. Heh, I have just ported J2ME game to C++. That was something... Took me a lot of time <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> I think I am beginning to hate Java. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Thu, 22 Feb 2007 09:54:00

RambOrc

Let me guess... just as you blissfully used Internet Explorer up to recently, you don't use any other OS than Windows, that's why you don't understand the whole point of Java. <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Thu, 22 Feb 2007 11:42:54

Crimson Wizard

Technically I do not understand whole point of Java because I never studied Java in proper way. Besides, I never said that Java is useless or worse than something else. So, stop picking on me.
Thu, 22 Feb 2007 11:57:11

RambOrc

LOL don't take this stuff seriously. As for the point of Java, it is that it's OS independent, which is not true for C++. Also, Java is a sandbox, meaning no matter what kind of shit is in the app, it can't flow out of the sandbox and impact your computer. Java might lose foothold with the upcoming of AJAX, but before AJAX there was no technology to do what Java did.
Thu, 22 Feb 2007 13:06:25

Crimson Wizard

Funny that, I knew those two features. In fact I thought you meant something more... err.. well, complicated. That usually happens to me. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> Actually, the only thing that I really do not like in Java is that its apps do not explicilty deallocate memory, but let garbage collector to do this... that makes me nervous. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
Thu, 22 Feb 2007 16:00:21

Moose

Right well my coursework is done, for now. So I'll have a look at this bug.
Thu, 22 Feb 2007 18:58:45

Firebrand

[quote="Crimson Wizard":2f4ias7a]Actually, the only thing that I really do not like in Java is that its apps do not explicilty deallocate memory, but let garbage collector to do this... that makes me nervous. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> Why? Do you prefer to be working with pointers to memory?? Frankly that's the only thing I hate from C, those pointers make me crazy!! <!-- s:x --><img src="{SMILIES_PATH}/icon_mad.gif" alt=":x" title="Mad" /><!-- s:x -->
Thu, 22 Feb 2007 19:47:03

TheCount

<!-- m --><a class="postlink" href="http://www.python.org/">http://www.python.org/</a><!-- m --> <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> DISCUSS
Fri, 23 Feb 2007 15:09:33

Crimson Wizard

[quote="Firebrand":28n5b7le][quote="Crimson Wizard":28n5b7le]Actually, the only thing that I really do not like in Java is that its apps do not explicilty deallocate memory, but let garbage collector to do this... that makes me nervous. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> Why? Do you prefer to be working with pointers to memory?? Frankly that's the only thing I hate from C, those pointers make me crazy!! <!-- s:x --><img src="{SMILIES_PATH}/icon_mad.gif" alt=":x" title="Mad" /><!-- s:x --> I prefer to have a maximum control over memory I use. I know that C pointers could be irritating sometimes, but in my opinion they teach man attention and good discipline. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> [quote="TheCount":28n5b7le]DISCUSS Ok, I'll check this Python after a while.
Fri, 23 Feb 2007 15:12:17

Firebrand

Well, I think it's sometimes better than something else cleans the memory <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, it's easier and less messy to create code IMO. As for Python, I think it's just a way to combine code written in different languages and integrate it in a single project, I've never used it thought.
Fri, 23 Feb 2007 15:18:10

Crimson Wizard

[quote="Firebrand":15cmxkei]Well, I think it's sometimes better than something else cleans the memory <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, it's easier and less messy to create code IMO. Well, from my point of view those large Java programs that I've seen until know were quite messy since often it was rather difficult to understand where this or that object is actually deleted. Most crazy thing as seen for C++ programmer is when Java object reference's value is just substed by another one. In C that would mean lost memory. Anyway, regardless of language, it is a matter of good program construction that makes it not messy and well-readable.
Fri, 23 Feb 2007 18:37:52

Moose

I've taken a little time to look at the issue and it's not just switching between first and second weapons, the whole next/last weapon switching code is pretty screwed up, I'll re-write it over the next couple of days and I guess we'll end up with a KMod2.9 I think the problem has been around ever since Remi changed the weapon code to allow for as many weapons as we like. But as it is you should still be able to switch to the second weapon using the "Weapon 2" key (default '2'), just make sure it's configured correctly in the controls menu.
Fri, 23 Feb 2007 19:27:46

Firebrand

If it isn't configured properly you can use the "bind" command to manually set it up, if you don't know how bind works, just type bind on the console and the game will explain it's usage IIRC <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Thu, 01 Mar 2007 21:29:09

jonc2006

moose: it seems to me that it is some kind of glitch or bug in the key-mapping thing, i have resolved this by having r-shift go to my next weapon and "," be my previous weapon. "1" and the other number buttons also go to their respective weapons (im left handed on a laptop, that config might be weird but it whats fit for me). i havnt given 3.0 a try, i havnt found a link to it that works but all is well. do take heed to that balancing issue though, i love the ideas you have put out but all they need is a little tweaking in order to balance out the difficulty. my cleric ran out of the need to use mana before the end of the first hub for the 2nd weapon. cool idea but it is accessible wayyyyyyyy to soon. anyway good luck.
Thu, 01 Mar 2007 22:43:15

TheCount

[quote="jonc2006":1pxz600y]my cleric ran out of the need to use mana before the end of the first hub for the 2nd weapon. cool idea but it is accessible wayyyyyyyy to soon. anyway good luck. Ahh, the accursed heart of d'sparil <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->

Back to the Korax Forum Archives