News:

Check out the MegaGlest Wiki! Anyone can be an editor, and we want you!

Main Menu

0.4 beta2 (windows installer)

Started by silnarm, 16 June 2011, 16:00:30

silnarm

0.4 Beta 2

Windows Installer (~70MiB)

Important: If you have gae-0.4-beta1-data.zip in your  addons folder, delete it!
Glest Advanced Engine - Code Monkey

Timeline | Downloads

wciow

Tested and works good on windows. Unfortunately whenever i end a game it crashes to an error message box and spits this in the log:

[spoiler]Crash
Version: Advanced Engine 0.4 beta2 0.3-762-gd232bb2
Built: Fri 17/06/2011  1:21:10.73
Time: Thu Jun 16 22:08:27 2011
Description: Access violation (Reading address: 0x00000000)

Call Stack:
  Frame       Code address
  0x00DDF2F4  0x040E8B61 DrvPresentBuffers+0x61d11
  0x00DDF324  0x04174332 DrvPresentBuffers+0xed4e2
  0x00DDF384  0x0417513C DrvPresentBuffers+0xee2ec
  0x00DDF3AC  0x041756D3 DrvPresentBuffers+0xee883
  0x00DDF3DC  0x03B79786
  0x00DDF47C  0x0114641B Shared::Graphics::Gl::ModelRendererGl::renderMesh+0xabb at model_renderer_gl.cpp(463)
  0x00DDF4A4  0x01145929 Shared::Graphics::Gl::ModelRendererGl::render+0x39 at model_renderer_gl.cpp(181)
  0x00DDF54C  0x00FC6851 Glest::Graphics::Renderer::renderMenuBackground+0x241 at renderer.cpp(1311)
  0x00DDF560  0x00FF80DA Glest::Menu::MainMenu::renderBg+0x6a at main_menu.cpp(138)
  0x00DDF5C8  0x00FF6CE8 Glest::Main::Program::loop+0x3a8 at program.cpp(269)
  0x00DDFC10  0x00FF4805 Glest::Main::glestMain+0x3a5 at main.cpp(16707566)
  0x00DDFC18  0x00FF4A1D main+0x1d at main.cpp(223)
  0x00DDFC60  0x011C77B3 __tmainCRTStartup+0xfb at crt0.c(266)
  0x00DDFC6C  0x76753677 BaseThreadInitThunk+0x12
  0x00DDFCAC  0x773B9F02 RtlInitializeExceptionChain+0x63
  0x00DDFCC4  0x773B9ED5 RtlInitializeExceptionChain+0x36

=======================
[/spoiler]

Also setting the bump map shader on makes tileset models appear with light and dark patches on them, kinda like the engine is trying to apply a bump without one  :confused:

Team colour appears to be showing on some tileset models as well. In VG if the modder forgot to set the team colour/transparency switch, tileset models would ignore the team colour and render transparent. Now they show as the players team colour!
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

Omega

#2
I didn't (and don't plan to) test the beta2, but the latest git master (as of 10 minutes ago) doesn't seem to have this crashing problem, at least not for me.

A bit of an unrelated question that I didn't want to make a new topic for, how is the build date in the about menu calculated? The first time I built the current version as release, the build date oddly was the 12th of June, instead of the 16th. Building in debug fixed that, even though it was the exact same project it was built for.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

I'm not getting the crash on return-to-menu either, and hadn't noticed any odd looking tileset objects... but probably just need to try some other tilesets for that.

What video cards are you guys using?  I haven't tried on an NVidia in a while, will try that later.

@Omega: The build date is provided by the OS, it should be correct, I have no idea what is going on there! (Its correct for me in debug & release).
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Omega

Quote from: silnarm on 16 June 2011, 22:17:52
@Omega: The build date is provided by the OS, it should be correct, I have no idea what is going on there! (Its correct for me in debug & release).
Worked fine in release this time too. Can't replicate, so not sure what I did. At either rate, was just a curiosity.

The options menu hasn't had any progress in a while, is Hailstone still working on it?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

cds

I can''t start gae ,this is crash file
Crash
Version: Advanced Engine 0.4 beta2 0.3-762-gd232bb2
Built: Fri 17/06/2011  1:21:10.73
Time: Fri Jun 17 13:31:56 2011
Description: Access violation (Reading address: 0x00000000)

Call Stack:
  Frame       Code address
  0x0113F3C8  0x00000000
  0x0113F42C  0x004A9DA6
  0x0113F454  0x004927CD
  0x0113F458  0x7C93005D RtlFreeHeap+0x130
  0x0113F464  0x00693054 PHYSFS_writeUBE64+0x203b4
  0x00000000  0x00693073 PHYSFS_writeUBE64+0x203d3

cds

Ok,I find i can't change enderTerrainRenderer at options menu.When it is 2,i change it to 1 and gae crash ,but i change it to 1 use notepad.exe,then i can start a game.

Psychedelic_hands

Crash
Version: Advanced Engine 0.4 beta2 0.3-762-gd232bb2
Built: Fri 17/06/2011  1:21:10.73
Time: Fri Jun 17 16:58:39 2011
Description: Access violation (Reading address: 0x00000000)

Call Stack:
  Frame       Code address
  0x0113F80C  0x00000000
  0x0113F868  0x0062CC19
  0x0113F890  0x006090FE
  0x0113F928  0x0062C748
  0x0113FF70  0x004C4805
  0x0113FFC0  0x004C4A1D
  0x0113FFF0  0x7C816FE7 RegisterWaitForInputIdle+0x49

=======================

:( It starts then before the menu comes up it crashes.

silnarm

Ok, there appears to be something wrong with terrain renderer 2,

disable in options menu, or if like cds this proves impossible, manually change in glestadv.ini

RenderTerrainRenderer=1


@Psychedelic_hands
Could you please post the contents of glestadv.log & stdout.txt (both found in you config dir, one folder up from addons).
Glest Advanced Engine - Code Monkey

Timeline | Downloads

wciow

Ok I've narrowed the end game crash error down to the tileset which I am currently working on.

I think this may be due to the fact that the xml references models which don't (yet) exist. In beta 1 the model position would show the orange spotty box instead of crashing. In beta 2 nothing is shown but there is no crash either.

Heres some photo evidence of the other anomalies:
Team coloured tileset model:


Normal model lighting (above) and "burnt out" model lighting with bump map on:



Oh and this shot to show off my new tileset :)


Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

wecl0me12

I notice that the "buildings" tag for effects has been removed.

Can you put the total frame count back into the debug info? or is there another way to show this?

silnarm

@wciow: more problems with handling normal maps have been resolved, hopefully one of them fixes your burnt out hut textures ;) The team coloured tileset models is definately fixed.  Will build a new beta shortly.

@wecl0me12: see other thread for the buildings tag thing, total frame count has been returned to the debug info.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

lazyanttu

After I got new computer, I decided to move on to this next beta. I encountered the same problem with terrain renderer and got it working with terrain renderer 1. That caused no further problem, but another problem arouse. My self-cast abilities fail to work for some reason. It says "invalid target" and does nothing. It worked in previous version, has something changed in the XML or?



Well here is the XMLs of that ability in Unit XML:

Skill XML:

<skill>
   <type value="cast-spell" />
   <name value="cast-spell_skill" />
   <ep-cost value="30" />
   <speed value="1000" />
   <anim-speed value="200" />
   <animation path="models/stealth_bomber_die.g3d"/>
   <sound enabled="false" />
   <effects>
  <effect name="survey" bias="beneficial" stacking="stack" duration="3">
<multipliers/>
<static-modifiers>
<sight value="12"/>
</static-modifiers>
<flags/>
  </effect>
   </effects>
</skill>


Command XML:

<command>
   <type value="cast-spell"/>
   <name value="survey"/>
   <image path="images/survey.bmp"/>
   <unit-requirements/>
   <upgrade-requirements/>
   <affect value="self" />
   <cast-spell-skill value="cast-spell_skill"/>
</command>


This worked in previous version, but how should it be done in the latest beta? :|

Omega

#13
In the command XML, your affect tag says it only affects "self" (that is, can only be casted on the same unit). Change this to "target" to be able to cast on other units. You'll also probably want to set cycle to false, so that clicking the command will only use it once, instead of looping it over and over (like an attack does). Finally, there's a slight bug in your code. For targeted cast-spell skills, you want to LOCK speed and anim speed to be the same.

<command>
   <type value="cast-spell"/>
   <name value="survey"/>
   <image path="images/survey.bmp"/>
   <unit-requirements/>
   <upgrade-requirements/>
   <affect value="target" /> <!-- is cast upon a target unit -->
   <cycle value="false" /> <!-- single skill cycle completes command* -->
   <cast-spell-skill value="cast-spell_skill"/>
</command>


Read more about this on the Glest Wiki.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

lazyanttu

#14
Well thank for help, it works with the "target" for other units, but I actually wanted it to be cast-self spell. And in previous version I just clicked that icon and it casted it on self. But now when I'm using the "self" for targets, it just says "invalid target". So if I want it to be like an activated ability for the unit itself, how should I do it/what I'm doing wrong? (I hope this is not going tooo off-topic)

(I fixed the anim speed and cycle, thanks for pointing them out)

By the way I just made a test with your Military mod, and "borrowed" those two air units. However, I'm replacing them with my own models during next weekend, I hope it doesn't bother that I used them? (I can remove them immediately) I haven't shown this mod to anybody, except the posts I have made in this forum. And I'm currently just testing/figuring things about GAE, so this is actually just a testbed and I start making the mod only after I have learned the basics of GAE.

Omega

Quote from: lazyanttu on  8 September 2011, 12:35:43
Well thank for help, it works with the "target" for other units, but I actually wanted it to be cast-self spell. And in previous version I just clicked that icon and it casted it on self. But now when I'm using the "self" for targets, it just says "invalid target". So if I want it to be like an activated ability for the unit itself, how should I do it/what I'm doing wrong? (I hope this is not going tooo off-topic)
Hmm, not sure, then... It may be a bug. We may have to wait until a GAE dev takes a closer look.

Quote from: lazyanttu on  8 September 2011, 12:35:43
By the way I just made a test with your Military mod, and "borrowed" those two air units. However, I'm replacing them with my own models during next weekend, I hope it doesn't bother that I used them? (I can remove them immediately) I haven't shown this mod to anybody, except the posts I have made in this forum. And I'm currently just testing/figuring things about GAE, so this is actually just a testbed and I start making the mod only after I have learned the basics of GAE.
My Apocalyptic Dawn (formerly known as Military) mod is licensed as CC-BY-SA. This means you can do whatever you want with it, as long as when you release it, you credit the authors. So in other words, feel free to use whatever media in AD you wish.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

hailstone

CastSpell seems to be a big buggy. If you activate the command and try to issue another command before castspell finishes it will call startSpellSystems with the wrong commandType. I'm not sure how to fix this.

Code (Unit::startSpellSystems) Select

if (frame == getSystemStartFrame()) {
if (currSkill->getClass() == SkillClass::ATTACK) {
startAttackSystems(static_cast<const AttackSkillType*>(currSkill));
} else if (currSkill->getClass() == SkillClass::CAST_SPELL) {
startSpellSystems(static_cast<const CastSpellSkillType*>(currSkill));
} else {
assert(false);
}
}


It's giving the InvalidTarget error because it wants the command to have a target. I can fix that part but it will still have the above problem when issuing another command.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

lazyanttu

If that is buggy, is it even somehow possible to make cast-self skill, just like in the previous beta? By the way, thanks for the cast-target skill, it really made some of my special abilities much more better, as "cast on target" abilities just didn't looked good as an additional effect in attack. I don't know if there is a list somewhere (I might be somewhat blind), but what are the key differences/new things between the beta 1 and 2?

hailstone

I've committed a patch to make cast-spell on self work but it's still got the bug when you try to issue another command while it's still doing cast-spell. (commit 790d50311fe..)

It looks like adding support for target caused self not to work (at commit 072d6df56b6f..).
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Zoythrus

so, i assume that this is the latest.....

*sighs*

Omega

Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zoythrus

im surprised that a new pre-compiled version hasnt come out....is there any progress being made?!