Right guys i finally replaced the 2 days of lost work, i have many more backups now as well!!
The demo gen can now attack (very primitively), fire superweapons, get upgrades, use tunnel networks and rebuild its base...
the rebuilding bit is quite interesting because i completely razed his base and left only a supply depot there. i went for food and when i was back he rebuilt everything but a command center (so thats 3 arms dealers, 3 scud storms, 6 black markets a barracks a palace and some 15 defenses) and a big army of marauders, bikes, buggies and quads was destroying my base.
another thing i though it was funny to notice is i rewrote the attacking routines and now the AI sends all its got (i havent got any base defense teams yet) and doesnt focus on one target, the attacking force spread around to destroy my base instead of focusing on one place, but strangely enough they did not behave as a team, it just sent a huge assault instead of stopping by the outskirts and then attacking (must be because of the agressiveness settings i changed).
The defenses seem to work really well and it will basically build a circle of defenses that covers the WHOLE of the base, so no heroes could get in so far...
im now going to work on more upgrades, general power usage, tech building capturing and hero usage....