/[projet1]/users/chema/TINE
Defence Force logotype

Log of /users/chema/TINE

View Directory Listing Directory Listing


Sticky Revision:
(Current path doesn't exist after revision 494)

Revision 212 - Directory Listing
Modified Mon Jan 25 21:34:06 2010 UTC (9 years, 2 months ago) by Chema
A couple of tweaks more... one patch and some code removed...

Revision 210 - Directory Listing
Modified Mon Jan 25 17:49:04 2010 UTC (9 years, 2 months ago) by Chema
Many small changes this time. A bug in the energy panels in the cockpit has been corrected. A bug and planet name in hardcoded save game data was corrected also.

Other minor tweaks and optimizations. Patched the attribute_changed thing.

Launched ship is now rotated correctly (180deg in Y axes) so planet is behind. 

First test to put alternate colors and it looks really well. Changed flash when hit to magenta, as yellow was hardly visible.


Revision 209 - Directory Listing
Modified Sun Jan 24 17:41:36 2010 UTC (9 years, 2 months ago) by Chema
Moved energy low message to the main loop, each 64 frames. Removed the patch to avoid sound for that message, as it is no more needed.

Added the extra maneuverability unit.

Tweaked the messages for landing/launching.

Revision 206 - Directory Listing
Modified Sat Jan 23 00:35:01 2010 UTC (9 years, 3 months ago) by Chema
Some more tweaks. Fixed some code in radar, galaxy and other minor details. Added two messages for launching/landing, but I don't like how it works... And it does not do anything when not in front view.

Solved a bug in the radar, when the number of objects becomes zero.

Revision 205 - Directory Listing
Modified Fri Jan 22 12:34:27 2010 UTC (9 years, 3 months ago) by Chema
Initial cash is now 100 Cr

Changed in order of files in osdk_config.bat. Mostly for testing...

Many changes to radar.s. All the loops have changed and have been optimized.

Still several details that have to be checked (see todolist.txt)

Scanner code is still... dumb.

Asteroid rotation was stupidly put in MoveCurrent. Now it sets rotz in creation.

Some more cleaning in tineloop.s

Revision 204 - Directory Listing
Modified Thu Jan 21 18:29:33 2010 UTC (9 years, 3 months ago) by Chema
Small minor additions and some cleaning of code.

Added a worm and a missile counter, so we can limit their number for computer AIs. Limits in defines in tine.h

Radar and scanner are updated only every 2 frames.

Asteroids now rotate.

Found a bug in the radar. It needs a lot of space to work with all the possible objects, but that is indeed a waste, so need to clean up that code, which is indeed a mess.

This version has ALTSCANS undefined for testing purposes.

Revision 203 - Directory Listing
Modified Thu Jan 21 15:50:45 2010 UTC (9 years, 3 months ago) by Chema
Removed the need of a var energy_bomb and continuous checking. Now there is a routine that explodes all the affected ships when user press "B".

Cleaned some code.

Added a patch when in rear view with a jsr. Else nop nop nop.

Anacondas now launch worms

Revision 202 - Directory Listing
Modified Wed Jan 20 22:31:15 2010 UTC (9 years, 3 months ago) by Chema
Ok, after learning the rate of the IRQ is configurable, changed it to read keyboard at 25hz and optimize everything. removed the sei/cli. Tuned frameskip thresholds.

Revision 201 - Directory Listing
Modified Wed Jan 20 20:05:16 2010 UTC (9 years, 3 months ago) by Chema
More things suggested by Dbug changed. 
This time rotation routines in tineloop.s
Added more comments to the sources.

Also reduced the max number of objects to 32. If this works, we save a lot of memory.

I am not sure what happened, but it seems to run MUCH faster now. Except from occasional slowdowns, which I have to track. Seems a bug.

Revision 200 - Directory Listing
Modified Wed Jan 20 18:01:23 2010 UTC (9 years, 3 months ago) by Chema
first optimizations in stars.s

Followed Dbugs ideas, plus some details:

clipping is checked in the routines, so a star never gets out of the clipping, region, thus this check in PlotStar is not needed anymore.

Still need to face the reorganization of code to avoid taking branches...

Revision 199 - Directory Listing
Modified Tue Jan 19 22:13:21 2010 UTC (9 years, 3 months ago) by Chema
Several suggestions by Dbug added:
some kind of in-screen instructions in some pages
arrow cursor support (partial)
solved the planet size jump thingy
added Dbug's optimization to stars.s. The easy one, the add/sub thing.
Music is correct now. Plays all patterns.

Revision 198 - Directory Listing
Modified Mon Jan 18 17:21:16 2010 UTC (9 years, 3 months ago) by Chema
problem with useless archive .ncb... just to remove the hideous icon...Many little details solved. Price of ECMs and Escape capsule interchanged. Circle routine enhanced and a bug with the no-clip version solved. Bug when trying to load an empty slot solved. sound.s altered so AY regs are shared between my routines and Twi's. Also SndStop is corrected, saving 128 on regs. tactics.s changed so ships detect collision course sooner. Initial number of missiles and large cargo bay equipment solved in initializing player's ship. Added a KLUDGE in end_intro to ensure radar is empty when saving controls. Removed the code that prevented ships to appear if police around (universe.s). Now more thrilling, but needs more testing.


Revision 197 - Directory Listing
Modified Sat Jan 16 17:15:18 2010 UTC (9 years, 3 months ago) by Chema
Several small changes. Added new player from Twi and new compiled music. Still a bug there, but now it sounds quite ok.

Also player's status is cleared when using escape pod.

Solved two bugs that were not noticed before: rear & front damage is now correctly done (in a better way, before missiles did it wrong); and the recharge of the aft shield is now correctly done (had an awful error before).

Revision 196 - Directory Listing
Modified Fri Jan 15 23:08:48 2010 UTC (9 years, 3 months ago) by Chema
Damage from lasers and missiles updated and put in defines in tine.h

This version was sent to Dbug and Twi.

Revision 195 - Directory Listing
Modified Thu Jan 14 22:47:34 2010 UTC (9 years, 3 months ago) by Chema
Many little changes. Removed the first intro screen.. it is useless. Will need to add a Change Commander's Name in the LOAD/SAVE screen.

Added the Escape pod at last! And it seems to work.

Also removed a bug where lasers at your ship did not work when you watch them from outside (for instance from an escape pod).

Moved several defines to tine.h, now much more clear.

Revision 194 - Directory Listing
Modified Wed Jan 13 22:33:43 2010 UTC (9 years, 3 months ago) by Chema
3 missiles as a start. Corrected a bug where initializing a ship when loading from disk was not correctly done (wrong equipment)
Thargon/thargoid naming conventions now follow manual

Revision 193 - Directory Listing
Modified Mon Jan 11 12:38:56 2010 UTC (9 years, 3 months ago) by Chema
Added ship names in intro screens and updated the todolist.txt

Revision 192 - Directory Listing
Modified Sun Jan 10 22:31:20 2010 UTC (9 years, 3 months ago) by Chema
More modifications in the alternate scan thing. Also put back tables for player control of the ship.

Revision 191 - Directory Listing
Modified Sun Jan 10 21:01:35 2010 UTC (9 years, 3 months ago) by Chema
?

Revision 190 - Directory Listing
Modified Sun Jan 10 20:56:26 2010 UTC (9 years, 3 months ago) by Chema
added music.s


Revision 189 - Directory Listing
Modified Sun Jan 10 20:53:00 2010 UTC (9 years, 3 months ago) by Chema
More attempts with the odd/all/odd idea. Generated new defines in tine.h and the frame_time variable. Also disable interrupts before doing some routines in drawing.

Added a kind of play 0,0,0 in SndStop.

Revision 188 - Directory Listing
Modified Sat Jan 9 23:51:23 2010 UTC (9 years, 3 months ago) by Chema
Many new details... toggling between front/rear view is now in key V, whilst galactic hyper is correctly working with H (I hope).

Also working on a first try to draw ALL/odd/ALL/odd frames when framerate goes slow... Even have code to skip drawing in that case.

Revision 187 - Directory Listing
Modified Fri Jan 8 23:16:38 2010 UTC (9 years, 3 months ago) by Chema
Moved dictionary to overlay. Now barely 740 bytes left there, but more than 3K on normal memory.

Also added SndStop to sound.s and tweaked so music is stopped correctly. Also added jsr SndStop before restarting to see if I can get the music be correctly played after restarting.

If music gets much higher than which currently is, be careful to remove dict again.

Found a bug, where the value of shields gets <0 or something like that and is not decremented afterwards..

Revision 186 - Directory Listing
Modified Fri Jan 8 22:29:55 2010 UTC (9 years, 3 months ago) by Chema
Music added. Thanks to Dbug's new version of the old version of the linker :)

Also optimized the radar a bit, but still needs more tweaking.

Revision 185 - Directory Listing
Modified Thu Jan 7 23:35:24 2010 UTC (9 years, 3 months ago) by Chema
Messed around with wave player, the too many labels error and the new link65. A lot of problems, but seems to be ok now (music removed).

Added an effect to ships in intro to move them backwards after some time and change the model. Also added FLG_SLOW to several ships when creating them.

Removed colons from comments and also converted obj3d.s to DOS format (has a mix with Unix linefeeds).

Revision 184 - Directory Listing
Modified Sat Jan 2 22:55:21 2010 UTC (9 years, 3 months ago) by Chema
More bug hunting and small additions. The most important thing is that I have added Dbug's new line routine, with no extra pixel error.

Now if ECM is active enemies don't launch missiles. Also find target makes sure that a target has not been deleted even if still in the visible list (could happen). This and other checks seem to minimize the error where invisible strange enemies were killed and gave you a lot of credits. But the problem is still there. I have set a halt if it happens for more testing.

Revision 183 - Directory Listing
Modified Fri Jan 1 20:54:12 2010 UTC (9 years, 3 months ago) by Chema
Changed missile model, implemented the energy bomb :) and corrected a bug caused by making the linked list of visible objects of size different than 129 bytes. I know now how it works, so could change that, but an entry=$80 states the end of the list (direct test with bmi) and the list starts at VISOBJS+$80, so should be careful.

Did not add that enemy do not fight missiles if ecm active.

Revision 182 - Directory Listing
Modified Mon Dec 28 22:46:28 2009 UTC (9 years, 3 months ago) by Chema
Changed model of missile to something simpler. Works much better.

Maybe introduced a new bug somehow? Need more testing

Revision 181 - Directory Listing
Modified Sun Dec 27 21:17:04 2009 UTC (9 years, 3 months ago) by Chema
More bug hunting and adjustments. Added a loop based on a VIA timer to try to make the random generator more random (check main.s)

Pirates now target you or other ships randomly, creating more private encounters.

Changed the time HUD messages are on display.

Also added correct normals for splinters.

Revision 180 - Directory Listing
Modified Fri Dec 25 20:35:22 2009 UTC (9 years, 3 months ago) by Chema
Fixed a bug related with rear view (coming from screens to space and viceversa).
Added messages for front & rear view.
Added inflight messages for Missile Armed & Unarmed
Tweaked the number of missiles of enemies in random encounters.
Also corrected and varied how initial ships are created in create_universe, so space is populated when player appears.


Revision 179 - Directory Listing
Modified Thu Dec 24 16:36:15 2009 UTC (9 years, 3 months ago) by Chema
Added sound for missiles. Corrected a bug where Bounties were incorrectly assigned. Removed some debug values (just kept framerate) and speed increased a lot. Tweaked some rnd values in enemy creation, so now encounters occur more often.

Revision 178 - Directory Listing
Modified Wed Dec 23 20:58:34 2009 UTC (9 years, 4 months ago) by Chema
Solved even more bugs. One of them made the cursor in low range chart be wrong (outside screen) when coming from galactic chart and a far planet was selected.

Added FLG_PIRATE to Thargoids, so police helps.

Tweaked circle drawing so no clipping is done if not necessary. Can improve this more by inlining things, but as we are low on memory I prefer to wait before doing this.
Removed several clcs and secs which should not be needed to speed up drawing.

Also changed a couple of things in memory layout in obj3d.s and LineDraw.s, to gain a good amount of over 200 bytes. 

Removed USE_ACCURATE_CLIPPING from the params.h file, as it speeds things up, reduces code and does not seem to change anything.

Added a #define USE_OBLETS to remove all the code related to Compound object drawing, to save memory and speed up the code (just a bit).

Moved the object records area (over 2K) to fffa-size.

Revision 177 - Directory Listing
Modified Tue Dec 22 19:21:26 2009 UTC (9 years, 4 months ago) by Chema
Corrected a bug where thargons were not given the ECM. Also thargoids carried are random (0-3).

Tested that it is possible to fight a thargon. It is, if well equipped, but the trick of firing a missile when very close is quite helpful.

Adapted the ship size to the scaled-down versions.

Corrected the bug where planet_distance was not correctly set at the first frame. Now you can't jump just after undocking.

Corrected the visibility distance, so it is no more possible that a ship in front of you fires, while it is not visible (lasers incorrectly drawn).

Added shipdatal.xls (with the scaling factor and size) to the repository.

Revision 176 - Directory Listing
Modified Sun Dec 20 21:03:48 2009 UTC (9 years, 4 months ago) by Chema
Power redirection working. Also made energy and shields fixed values, so cockpit controls work OK.

Tweaked other things, like reinitializing the starfield when looking back

Changed InitPlayerShip and NewPlayerShip, so there is a PreInit entry point... also commented a jsr InitPlayerShip before a jsr CreateUniverse when pressing 1, which is unnecessary.

Revision 175 - Directory Listing
Modified Sat Dec 19 00:29:40 2009 UTC (9 years, 4 months ago) by Chema
More bugs corrected. Seems planets are never too far now. Also made radar stick tops 3 pixels, instead of two.

Noted down more ideas on todolist.txt

Revision 174 - Directory Listing
Modified Mon Dec 14 12:29:24 2009 UTC (9 years, 4 months ago) by Chema
Ok. Many changes. Semi-working saving/loading with a test interface (not user-friendly). Also changed screens layouts to put the red frame on all of them. Solved a bug where going to galchart and back to sys info resulted in a wrong race description.

Other minor changes that I could not commit due to miniserve being down.

Revision 171 - Directory Listing
Modified Tue Nov 24 19:14:45 2009 UTC (9 years, 4 months ago) by Chema
Forgot to add the sound.s file!

Revision 170 - Directory Listing
Modified Tue Nov 24 19:00:38 2009 UTC (9 years, 4 months ago) by Chema
Fixed several things on tactics.s, completing the AI (at last!). Only thing left is that, according to TNK, an ANACONDA launches WORMS or SIDEWINDERS when angry at us, which is not done here. Will check with elite-agb.

Also made a version 2 for circle clipping (inlining cmp16 and pixel address) with a gain between 5-10% when the circle is near. That is quite good!

Revision 169 - Directory Listing
Modified Tue Nov 17 21:29:27 2009 UTC (9 years, 5 months ago) by Chema
Many details added. Fuel is now considered, as well as distance. Several things on the todo list have been done

Identification of ship types when targetting also included

Revision 168 - Directory Listing
Modified Sun Nov 8 22:01:59 2009 UTC (9 years, 5 months ago) by Chema
Added a first version of the light indicator for planet distance. Needs tweaking so it is updated when front view is loaded.

Also added a check for mass locked when trying to jump to hyper, and clearing the scanner when too far.

First attempt to produce sounds, but need to workout problems with pseudo-reg dumping. If we use a copy for updating only what has changed, it needs more work.


Revision 167 - Directory Listing
Modified Thu Oct 29 19:50:24 2009 UTC (9 years, 5 months ago) by Chema
Fixed problem with scanner, which was not drawn if at center and comming from other screen.

Revision 166 - Directory Listing
Modified Wed Oct 28 21:12:07 2009 UTC (9 years, 5 months ago) by Chema
Minor updates. Not corrupting when docking and not in front view, puting 100 as ZMIN, and print ship pos as dbug values.

Made lots of tests and noted down things in todolist.txt

Revision 164 - Directory Listing
Modified Thu Oct 22 19:07:29 2009 UTC (9 years, 6 months ago) by Chema
Pirates and bounties are created. Only thing left is setting their equipment.

Revision 163 - Directory Listing
Modified Thu Oct 22 10:51:37 2009 UTC (9 years, 6 months ago) by Chema
Generating shuttles and transports. Tweaked some randomizing.
Police is working (attacking a shuttle makes them angry).

Revision 162 - Directory Listing
Modified Wed Oct 21 19:06:03 2009 UTC (9 years, 6 months ago) by Chema
More random encounters added. Even the skeleton for pirates, bounties and shuttles, though the chance is really low.

Police act as such, and now they (as every ship which deserves it) have the FLG_INNOCENT set. Added more to the AI, which is nearly completion.

Revision 161 - Directory Listing
Modified Tue Oct 20 21:24:14 2009 UTC (9 years, 6 months ago) by Chema
Still adding random encounters. Police, thargons (with thargoids) and cougars added.

Revision 160 - Directory Listing
Modified Tue Oct 13 20:11:09 2009 UTC (9 years, 6 months ago) by Chema
Started with dynamic creation of enemies, but something is bugged as dying gives problems (when restarting or never "gameovering")

Revision 159 - Directory Listing
Modified Wed Oct 7 17:31:52 2009 UTC (9 years, 6 months ago) by Chema
Minor fixes. On Hold instead of In Ship and gets length, for instance.

Revision 158 - Directory Listing
Added Wed Oct 7 11:46:14 2009 UTC (9 years, 6 months ago) by Chema
Last updates after video on youtube. Missiles corrected. Initialization of player's ship corrected.

  ViewVC Help
Powered by ViewVC 1.1.26